- Code: Select all
on *:kick:#: {
if ($chan == %service.privchan) { halt }
if ($knick == $me) {
putmsg %service.privchan 4ERROR: I've been KICKED from $+ $chan by $+ $nick with the reason: $+ $1- $+
}
if (%protect_status_ [ $+ [ $chan ] ] == on) {
if (($readini(userlist.ini,Admins,$address($nick,2))) || ($nick == $me) || ($readini(userlist.ini,$chan,$address($nick,2)) == Owner) || ($nick == Q) || ($readini(userlist.ini,$chan,$address($nick,2)) == Master)) { putmsg Q unbanme $chan | join $chan | halt }
else { putmsg Q unbanme $chan | join $chan | .timer 1 1 ban -k $nick 2 You are not allowed to KICK on $chan (Service By #StareX) | halt }
}
on *:ban:#: {
if ($chan == %service.privchan) { halt }
if ($banmask iswm $address($me,5)) {
putmsg %service.privchan 4ERROR: I've been BANNED from $+ $chan by $+ $nick $+
}
if (%protect_status_ [ $+ [ $chan ] ] == on) {
if (($readini(userlist.ini,Admins,$address($nick,2))) || ($readini(userlist.ini,$chan,$address($nick,2)) == Owner) || ($nick == $me) || ($nick == Q) || ($readini(userlist.ini,$chan,$address($nick,2)) == Master)) { putmsg Q unbanme $chan | join $chan | halt }
else { putmsg Q unbanme $chan | join $chan | .timer 1 1 ban -k $nick 2 You are not allowed to BAN on $chan (Service By #StareX) | halt }
}
}
It's look like zNigel- service bot that he pasted before but its not really the same.. i just added up there a report script from his script... not big deal, anyway....
When the protection is OFF, and someone in my channel is in the userlist.. kick someone like fishbot.. the bot msg Q to unbanme

but the protection is off but the user who kicked fishbot dont get a kick warning...
when im enabling the protection its working great but if the user kick fishbot.. the bot do "Q unbanme" then kick the user :S
but when the user kick Suakenet, it come back to the channel and kick him and thats cool....
Can someone see or fix it for me?

It's really important to me..

Thanks,
StareX.