Copy this code, then in your mirc click ALT+R to open your remotes. I would put this in a file of its own. To do this, goto File, then New. Now, paste this code. This snippet protects you from deop/bans.
on *:rawmode:#: $iif($me isop #,$iif($me isin $1-,$iif($nick != $me,$iif($nick != Chanserv,$iif(-b !isin $1-,mode # $replacex($1-,+,-,-,+))))))