egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

newchanban

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
herrmy
Guest





PostPosted: Thu Mar 21, 2002 11:28 am    Post subject: Reply with quote

i have i little script that scans for bad words, if some user say one he/she will be banned the problem is that the bot kicks the user with reason (banned) and not with the set reason


proc bw_pubm {nick uhost hand chan text} {
regsub "^.*@" $uhost "*!*@" hostmask
if {[bad_words_test $text]} {
global botnick watchchan reason
if {$chan != $watchchan} {return 0}
if {$nick == $botnick} {return 0}
if {[isop $nick $chan]} {return 0} {
newchanban $chan $hostmask $botnick $reason 15
}
return 1
}
}
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber