kid, read the help file on while loops, and while you are at it, hash tables.
Also, the msg \"$chan -3Protection engaged- $banmask was unbanned -DiStUrBiRc v2.0-\" is umm... how do I put this politely....nevermind
lets just say just remove it, people can see $banmask being unbanned with the mode message, so its redundant,