From 789471f395b9997f4afef6e53f35a79716781370 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 5 Mar 2013 13:57:00 -0600 Subject: [PATCH] Bugfix for chat refactoring --- channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channel.js b/channel.js index 27b272a3..b82123b6 100644 --- a/channel.js +++ b/channel.js @@ -389,13 +389,13 @@ Channel.prototype.moveMedia = function(data) { // Chat message from a user Channel.prototype.chatMessage = function(user, msg) { if(msg.indexOf("/") == 0) - ChatCommand.handle(msg); + ChatCommand.handle(this, user, msg); else if(msg.indexOf(">") == 0) this.sendMessage(user.name, msg, "greentext"); else - this.sendMessage(user.name, msg, msgclass); + this.sendMessage(user.name, msg, ""); } Channel.prototype.sendMessage = function(username, msg, msgclass) {