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.

Ban checking with ercmini1.8.tcl

Old posts that have not been replied to for several years.
Locked
B
Bro

Post by Bro »

Hiya, we set up a channel with +i and was going to use the ercmini1.8.tcl for inviting ppl, but I noticed that it doesn't check if the one who asks for an invite is banned on the channel and when invite overrides bans that script could mess it up bad..

All I need is a small isban-check to the beginning of the script, but I haven't coded tcl for like 4 years so I was wondering if someone could tell me what I need to add.. I guess it's something like

if {isban *!$nick@$uhost} { return 0 }

but not =)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

If the proc defintion starts with nick, the the following should work
if {[isban [maskhost "${nick}!${host}"] #channel]} { return }
The #channel will need to be changed tot he channel in question, and the $nick and $host will need changing to there equivilants int he proc definition.
B
Bro

Post by Bro »

Thanks a lot. I changed the isban to matchban and then it worked.
Locked