on *:text:!setworld *:#castlewars:{ if ($nick isprotect $chan) { if ($2 == $null) { /notice $nick Try actually adding a world } else { %world = $2 /notice $nick World set to $2 $+ . } } } on *:text:!world:#castlewars:/msg $nick The world is %world $+ . on *:text:!cworld:#castlewars:/msg $chan The world is %world $+ .