init: add workspace files
This commit is contained in:
14
world/cmd/channel/rumor.js
Normal file
14
world/cmd/channel/rumor.js
Normal file
@@ -0,0 +1,14 @@
|
||||
this.inherits(COMMAND);
|
||||
this.command = "rumor";
|
||||
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: "rumor", content: msg});
|
||||
|
||||
WORLD.sendAll(msg);
|
||||
}
|
||||
Reference in New Issue
Block a user