summaryrefslogtreecommitdiffstats
path: root/webchat/public/commands.js
diff options
context:
space:
mode:
Diffstat (limited to 'webchat/public/commands.js')
-rw-r--r--webchat/public/commands.js24
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' )
-
-
-}