# Set the words to ban for here.
set ban_words {
"blah"
"word word"
}
bind sign - * sign:ban
proc sign:ban {nick uhost hand chan text} {
global ban_words
foreach i $ban_words {
if {[regexp $i $text]} { pushmode $chan +b [maskhost $uhost] }
}
flushmode $chan
}
# Set the words to ban for here.
set ban_words {
"*blah*"
"*word word*"
}
bind sign - * sign:ban
proc sign:ban {nick uhost hand chan text} {
global ban_words
foreach i $ban_words {
if {[string match [string tolower $i] [string tolower $text]]} { pushmode $chan +b [maskhost $uhost] }
}
flushmode $chan
}
# Set the words to ban for here.
set ban_words {
"*blah*"
"*word word*"
}
bind sign - * sign:ban
proc sign:ban {nick uhost hand chan text} {
global ban_words
foreach i $ban_words {
if {[string match [string tolower $i] [string tolower $text]]} { pushmode $chan +b *!*@[lindex [split $uhost @] 1] }
}
flushmode $chan
}
<font size=-1>[ This Message was edited by: Wcc on 2002-02-15 23:40 ]</font>
well done Wcc. thanks for the code. Now it works the way I want. I think you should post the tcl to this site's tcl scripts page. I have searched for a tcl like this but I haven't found any.
I and I would guess many others would enjoy a tcl that has the options to kick or ban with timers and the usual options. ect. ect. make it a full up on part notice tcl. would make many chan owners happy I think.
# Set the words to ban for here.
set ban_words {
"inviter"
}
bind sign - * sign:ban
proc sign:ban {nick uhost hand chan text} {
global ban_words
foreach i $ban_words {
if {[string match [string tolower $i] [string tolower $text]]} {newchanban $chan *!*@[lindex [split $uhost @] 1] QuitTCL inviter 1100 sticky}
}
flushmode $chan
}
but it still needs some work for me. I want it to ban the user with the *!*@212.23.34.* format. the last class must replaced with a * . I think *!*@[lindex [split $uhost @] 1] must be modified. If anyone knows how please write it here.
Thanks...