diff options
Diffstat (limited to 'webchat/public/commands.js')
-rw-r--r-- | webchat/public/commands.js | 5 |
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) { |