This script will be rebanned all banmasks you have banned unless you unban it by yourself.
on *:UNBAN:#: {
if ($nick == $me) { halt }
if ($bnick == $me) { halt }
mode $chan +b $banmask
}
^You need to store your own bans someway (variable, ini, hash) and then compare the unban to the stored. Search the snippets and forum for such a script or searcA h the forums... If not found, ask.
About the snippet, its a bit to simple, and needs a flood protection so that you dont flood of the server. You should also allow it to be turned on and off ..