This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Tcl scripting question.

Old posts that have not been replied to for several years.
Locked
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Tcl scripting question.

Post by Sir_Fz »

what's the difference between newban and newchanban ?

what I can conclude, is that newban sets a ban but doesn't remeber it for the time set. but newchanban remembers it so even if the person rejoins before the ban expires, he will get kicked.

am I right ot not ? :P
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

You're not right.
Read doc/tcl-commands.doc
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

welp... the only difference is that the newban is for global bans and the newchanban for channel bans :P
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

mm, ok thanx I got it :)

but isn't there a way to ban ppl without remebering them. for example:
if the bot bans a user
then another op unbans the user
the user joins
and the bot doesn't kick ban him. (else it would kickban him with reason "Banned: <reason>"
I want it just to ban and unban later (if the ban is still in the channel's ban list)
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

try the .help kickban, and this will help.
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Better see the .help +ban
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

no that's not what I mean.
I mean in a script the ban code is as follows:

Code: Select all

set mask [uhost....]
putquick "MODE $chan +b $mask"
putkick $chan $nick "Reason - banned 10mins."
utimer 600 "putserv \"MODE $chan -b $mask\""
}
know what I mean. So is there a way to make it do the same but if the $mask is unbanned by someone else then the utimer stops.
Locked