Ban Enforcer - 19/08/04 01:18 PM
Hello, i'm trying to create something that does this:
If I ban someone, and then someone else unbans the person I banned, my script will automatically re-ban them.
This is what I got, but it doesn't work;
on @*:UNBAN:#:{
var %i = 1
while (%i <= $ibl($chan,0)) {
if ($banmask iswm $ibl($chan,%i)) && ($gettok($ibl($chan,%i).by,1,33) == $me) { mode $chan b $banmask }
inc %i
}
}
If I ban someone, and then someone else unbans the person I banned, my script will automatically re-ban them.
This is what I got, but it doesn't work;
on @*:UNBAN:#:{
var %i = 1
while (%i <= $ibl($chan,0)) {
if ($banmask iswm $ibl($chan,%i)) && ($gettok($ibl($chan,%i).by,1,33) == $me) { mode $chan b $banmask }
inc %i
}
}