diff options
author | lassulus <lassulus@googlemail.com> | 2013-11-12 02:59:28 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-11-12 02:59:28 +0100 |
commit | 721b4fb1b32ee47f158fb3b9a1ad0747ff579044 (patch) | |
tree | 8ba76f01ae92a1439df5607517313e20cda5d2dc /webchat/public/commands.js | |
parent | a170673b55215137b5e7fe19e587767c2ef57453 (diff) |
webchat: remove input parser
Diffstat (limited to 'webchat/public/commands.js')
-rw-r--r-- | webchat/public/commands.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/webchat/public/commands.js b/webchat/public/commands.js deleted file mode 100644 index f19c78dc..00000000 --- a/webchat/public/commands.js +++ /dev/null @@ -1,24 +0,0 @@ -var commands = {} - -commands.msg = function (settings, params) { - var sendObj = { - method: 'msg', - params: { msg: params } - } - settings.sock.send(JSON.stringify(sendObj)) -} - -commands.nick = function (settings, params) { - var sendObj = { - method: 'nick', - params: { nick: params }, - } - settings.sock.send(JSON.stringify(sendObj)) -} - -commands.badcommand = function (settings, params) { - console.log("error", params); - chatboxAppend( '<span class="from_system">error</span>', 'command not found' ) - - -} |