init: add workspace files
This commit is contained in:
16
world/cmd/channel/sys.js
Normal file
16
world/cmd/channel/sys.js
Normal file
@@ -0,0 +1,16 @@
|
||||
this.inherits(COMMAND);
|
||||
this.command = "sys";
|
||||
this.allow_busy = true;
|
||||
this.allow_state = true;
|
||||
this.enter = function (me, msg) {
|
||||
if (me) return;
|
||||
//if (!msg) {
|
||||
// return;
|
||||
//}
|
||||
//msg = UTIL.htmlEncode(msg);
|
||||
var msg = JSON.stringify({ type: "msg", ch: "sys", content: msg });
|
||||
|
||||
WORLD.sendAll(msg);
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user