summaryrefslogtreecommitdiffstats
path: root/webchat/public/commands.js
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-11-11 20:16:45 +0100
committerlassulus <lassulus@googlemail.com>2013-11-11 20:16:45 +0100
commitc6a7cd9027150fca42500b3bbc78be01993856f6 (patch)
tree0fbf009f8cbec49087f1621553a5fa4e92ce16dd /webchat/public/commands.js
parent52ee854fa72607eb00229f5c251393ac392fd4f8 (diff)
webchat: request handling
Diffstat (limited to 'webchat/public/commands.js')
-rw-r--r--webchat/public/commands.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/webchat/public/commands.js b/webchat/public/commands.js
index 20197fbb..5a570556 100644
--- a/webchat/public/commands.js
+++ b/webchat/public/commands.js
@@ -5,16 +5,15 @@ commands.say = function (settings, params) {
method: 'say',
params: { msg: params },
};
- sock.send(JSON.stringify(sendObj))
+ settings.sock.send(JSON.stringify(sendObj))
}
commands.nick = function (settings, params) {
- settings.nick = params
var sendObj = {
method: 'nick',
params: { nick: params },
}
- sock.send(JSON.stringify(sendObj))
+ settings.sock.send(JSON.stringify(sendObj))
}
commands.badcommand = function (settings, params) {