Code: Select all
bind mode - "* +b" channel:ban
proc channel:ban {nick uhost hand chan mc ban} {
if {[string match "$ban" "$::botname"] && [botisop $chan]} {
putquick "MODE $chan -bo $ban $nick"
putquick "PRIVMSG Chanserv@Services.dal.net :deop $chan $nick"
if {[matchattr $hand mn|mn $chan] == 0} {
set mask "*!*@[lindex [split $uhost @] 1]"
putkick $chan $nick "Don't Ban me, You know that's not a good idea."
putquick "MODE $chan +b $mask"
}
}
}
it doesn't work when for example:
the bot's nick is Bot
*if an op bans Bot!*@*; the script works
*if an op bans bot!*@*; the script doesn't work
also (considering the bot's host is HoST.net):
*if an op bans *!*@HoST.net; the script works
*if an op bans *!*@hosT.net or *!*@Host.net or...(u do the permutation:p); the script doesn't work
hope u got what the problem is, and can somebody answer my last reply in the "Action Advertise detecting" post
