on *:text:!mage on:#:{ if ($nick isop $chan) || ($nick == wat) { if ($eval($+(%,magic.,$nick),2) == $null) { notice $nick You switch to mage. | set $+(%,magic.,$nick) on | unset $+(%,atkon.,$nick) $+ * | halt } if ($eval($+(%,magic.,$nick),2) == on) { notice $nick Your mage is already on. } } } on *:text:!atk on:#:{ if ($nick isop $chan) || ($nick == wat) { if ($eval($+(%,atkon.,$nick),2) == $null) { notice $nick You switch to atk. | set $+(%,atkon.,$nick) on | unset $+(%,magic.,$nick) $+ * | halt } if ($eval($+(%,atkon.,$nick),2) == on) { notice $nick Your atk is already on. } } }