on @1:RAWMODE:#CHANNEL: {
var %users $2-, %mode $1, %n $nick
if (%n == $me) halt
elseif (%n != ChanServ) notice %n You're not allowed to use the mode system.
elseif (%n == ChanServ) && ($me isin %users) halt
var %m $left(%mode,1)
var %action $iif(%m == +,-,+)
var %mode $replace(%mode,%m,%action)
/mode # %mode $iif(%users,$v1,$null)
}