If someone bans you, this script will unban you, then de-rank the user so he can't counter your ban, bans him, then kicks him out of the channel. It will then unban him after 3 minutes, you can edit the timer and kick reason if you want. Very simple script but very useful. Just copy and paste this script into your remotes section in your script editor (alt +r).
on @!*:ban:#: {
if ($banmask iswm $address($me,5)) {
mode $chan -bqaohv $banmask $nick $nick $nick $nick $nick
ban -ku180 $chan $nick 4 Don't ban me! 3 Minute ban!
}
}
mode $chan -bqaohv $banmask $nick $nick $nick $nick $nick
can be simplified to:
mode $chan -bqaohv $banmask $str($nick,6)
-
mode $chan +b $fulladdress
kick $chan $nick Don\'t ban me! 3 Minute ban!
timer 1 180 mode $chan -b $fulladdress
can be simplified to:
ban -ku180 $chan $nick 4 Don\'t ban me! 3 Minute ban!