on $*:TEXT:/(!|.|@)(cw|cww|cwworld|world|cwset)/Si:#rscwars: { if (!cwset == $1) { if (($nick isop $chan) || ($nick ishop $chan)) { $iif(%cwworld,set %cwold %cwworld,$null) | /set %cwworld $2 | .notice $nick World changed to $iif(%cwold,%cwworld from %cwold $+ .,%cwworld $+ .) | msg #rscwars World changed to $iif(%cwold,%cwworld from %cwold $+ .,%cwworld $+ .) | /return } /return } if (.* iswm $1) { .msg $nick The castle wars world is: %cwworld $+ . Current team: %team $iif(%cwold,The previous world was: %cwold $+ .,$null) } if (!* iswm $1) { .notice $nick The castle wars world is: %cwworld $+ . Current team: %team $iif(%cwold,The previous world was: %cwold $+ .,$null) } if (@* iswm $1) { if (($nick isop $chan) || ($nick ishop $chan)) { msg $chan The castle wars world is: $iif(%cwworld,%cwworld $+ . Current team: %team .,The world has not been set!) $iif(%cwold,The previous world was: %cwold $+ .,$null) } } }