Code: Select all
bind kick - * channel:kick
proc channel:kick {nick uhost hand chan targ rsn} {
if {[string match -nocase "$targ" $::botnick]} {
putquick "PRIVMSG chanserv@services.dal.net :deop $chan $nick" -next
putquick "PRIVMSG chanserv@services.dal.net :unban $chan"
utimer 3 "lamer:remove $chan $nick $banlmr"
set banlmr "*!*@[lindex [split $uhost @] 1]"
}
}
proc lamer:remove {chan nick banlmr} {
if {[botisop $chan]} {
putkick $chan $nick "Lamer Removed."
putquick "MODE $chan +b $banlmr"
}
}
but I guess there's another much easier way to do it.
so does anybody know a way to let the bot kickban the lamer when it rejoins the channel and regains its op ?