the bot is rejoining the channel, butt he aint banning the user who did it, hes just rejoining, can somebody give me some advice what too do ?
here's the script
Code: Select all
set globalbantime "120"
set banmsg "Dont ban me dude, 120 minutes banned
set kickmsg "[censored] off"
setudef flag banpunish
setudef flag banprot
bind mode - * check_modes
proc check_modes {nick uhost hand chan mode arg} {
global botnick kickmsg globalbantime
foreach i [channel info $chan] {
if {([onchan L $chan])} {
if {([string match "+banpunish" $i])} {
if {($mode == "-o") && ($arg == $botnick) && ($nick != "*.quakenet.org")} {
putserv "PRIVMSG L :unbanall $chan"
puthelp "JOIN $chan"
putserv "PRIVMSG L :op $chan"
utimer 3 [list putserv "MODE $chan -o $nick"]
utimer 5 [list putserv "MODE $chan +b $nick *!$uhost"]
utimer 7 [list putserv "KICK $chan $nick :$banmsg"]
timer $globalbantime [subst {putserv "MODE $chan -b *!$uhost"}]
} else {
if {($mode == "+b") && ($arg == $botnick) && ($nick != "*.quakenet.org")} {
putserv "PRIVMSG L :unbanall $chan"
puthelp "JOIN $chan"
putserv "PRIVMSG L :op $chan"
utimer 3 [list putserv "MODE $chan -o $nick"]
utimer 5 [list putserv "MODE $chan +b $nick *!$uhost"]
utimer 7 [list putserv "KICK $chan $nick :$banmsg"]
timer $globalbantime [subst {putserv "MODE $chan -b *!$uhost"}]
}
}
} else {
if {([string match "+banprot" $i])} {
if {($mode == "-o") && ($arg == $botnick) && ($nick != "*.quakenet.org")} {
putserv "PRIVMSG L :unbanall $chan"
puthelp "JOIN $chan"
putserv "PRIVMSG L :op $chan"
utimer 3 [list putserv "MODE $chan -o $nick"]
utimer 5 [list putserv "KICK $chan $nick :$banmsg"]
timer $globalbantime [subst {putserv "MODE $chan -b *!$uhost"}]
} else {
if {($mode == "+b") && ($arg == $botnick) && ($nick != "*.quakenet.org")} {
putserv "PRIVMSG L :unbanall $chan"
puthelp "JOIN $chan"
putserv "PRIVMSG L :op $chan"
utimer 3 [list putserv "MODE $chan -o $nick"]
utimer 5 [list putserv "KICK $chan $nick :$banmsg"]
timer $globalbantime [subst {putserv "MODE $chan -b *!$uhost"}]
}
}
}
}
} else {
if {([onchan Q $chan])} {
if {([string match "+banpunish" $i])} {
if {($mode == "-o") && ($arg == $botnick) && ($nick != "*.quakenet.org")} {
putserv "PRIVMSG Q :unban $bothost"
puthelp "JOIN $chan"
putserv "PRIVMSG Q :op $chan"
utimer 3 [list putserv "MODE $chan -o $nick"]
utimer 5 [list putserv "MODE $chan +b $nick *!$uhost"]
utimer 7 [list putserv "KICK $chan $nick :$banmsg"]
timer $globalbantime [subst {putserv "MODE $chan -b *!$uhost"}]
} else {
if {($mode == "+b") && ($arg == $botnick) && ($nick != "*.quakenet.org")} {
putserv "PRIVMSG Q :unban $bothost"
puthelp "JOIN $chan"
putserv "PRIVMSG Q :op $chan"
utimer 3 [list putserv "MODE $chan -o $nick"]
utimer 5 [list putserv "MODE $chan +b $nick *!$uhost"]
utimer 7 [list putserv "KICK $chan $nick :$banmsg"]
timer $globalbantime [subst {putserv "MODE $chan -b *!$uhost"}]
}
}
} else {
if {([string match "+banprot" $i])} {
if {($mode == "-o") && ($arg == $botnick) && ($nick != "*.quakenet.org")} {
putserv "PRIVMSG Q :unban $bothost"
puthelp "JOIN $chan"
putserv "PRIVMSG Q :op $chan"
utimer 3 [list putserv "MODE $chan -o $nick"]
utimer 5 [list putserv "KICK $chan $nick :$banmsg"]
timer $globalbantime [subst {putserv "MODE $chan -b *!$uhost"}]
} else {
if {($mode == "+b") && ($arg == $botnick) && ($nick != "*.quakenet.org")} {
putserv "PRIVMSG Q :unban $bothost"
puthelp "JOIN $chan"
putserv "PRIVMSG Q :op $chan"
utimer 3 [list putserv "MODE $chan -o $nick"]
utimer 5 [list putserv "KICK $chan $nick :$banmsg"]
timer $globalbantime [subst {putserv "MODE $chan -b *!$uhost"}]
}
}
}
}
}
}
}
}