[Turn on line numbering]arg cmd, args, opts, detailed, full; var ch, syn, cmd; syn = "Syntax: " + cmd + " <channel> <command>"; if (listlen(args) < 2) return [syn, "Where <command> is one of: WHO, OFF, ON, or INFO"]; [ch, cmd, @args] = args; switch (cmd) { case "who": if (ch in $channel_db.system_channels() && !$sys.is_system(this())) return "Sorry, that's a listen only channel."; return .channel_members(ch, full); case "off": .channel_off(ch); return; case "on": .channel_on(ch); return; case "info": return; default: return "Unknown @channel command: " + cmd + ", should be: WHO, OFF, ON or INFO"; }
// Created 24-Jul-1996 as a part of ColdCore, see: @help Credit