my bot kicking to ops on channel,
what is the true code ?
Code: Select all
bind msgm - * pv_kick
proc pv_kick {nick uhost hand text} {
global botnick spambantime
## i think u dont need to change anything below
## the bot will kickban if someone private message bot said words with "#" , "join" ,"channel" .etc
## if u want change please make sure you cannot put "*words*" . "*" or "?" will make the tcl didn`t work
if {[regexp -nocase "" $text] > 0} {
foreach kickchan [channels] {
if {![isop $nick $kickchan] || ![isvoice $nick $kickchan]} {
if {[onchan $nick $kickchan]} {
set bmask "*!*[string range $uhost [string first "@" $uhost] end]"
if {![ischanban $bmask $kickchan] || [botisop $kickchan]} {
set kickmsg "\00312\002\037Cause\037:\002 Mass-Msg/Invite/Adv/Trojan Send\00312"
putquick "KICK $kickchan $nick :$kickmsg"
newchanban $kickchan $bmask $botnick Mass-Msg $spambantime
}
}
}
}
}
}