this script protects u on channel u r master or owner. if somebody bans u this script Qban the banner and take his masterflags (if u r owner) or take his +ao flags (if u r master) this script also gives banner flag +b so if u want unban him/her YOU HAVE TO USE COMMANDS /msg Q banclear #channel and /msg Q chanlev (#chann) (nick) -b it also unbans you and make u join back.
on *:ban:*:{ if ($banmask iswm $address($me,5)) { msg Q ban $chan $nick | msg Q chanlev $chan $nick +b | msg Q unbanme $chan | join $chan }
;tested and works very well :)
;if u have suggestion how to make this script better, join channel #paskakannu @Quakenet :P and tell me, my nick shitbreak