mirror of https://github.com/calzoneman/sync.git
Bugfix for chat refactoring
This commit is contained in:
parent
ab48c6aa50
commit
789471f395
|
@ -389,13 +389,13 @@ Channel.prototype.moveMedia = function(data) {
|
||||||
// Chat message from a user
|
// Chat message from a user
|
||||||
Channel.prototype.chatMessage = function(user, msg) {
|
Channel.prototype.chatMessage = function(user, msg) {
|
||||||
if(msg.indexOf("/") == 0)
|
if(msg.indexOf("/") == 0)
|
||||||
ChatCommand.handle(msg);
|
ChatCommand.handle(this, user, msg);
|
||||||
|
|
||||||
else if(msg.indexOf(">") == 0)
|
else if(msg.indexOf(">") == 0)
|
||||||
this.sendMessage(user.name, msg, "greentext");
|
this.sendMessage(user.name, msg, "greentext");
|
||||||
|
|
||||||
else
|
else
|
||||||
this.sendMessage(user.name, msg, msgclass);
|
this.sendMessage(user.name, msg, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
Channel.prototype.sendMessage = function(username, msg, msgclass) {
|
Channel.prototype.sendMessage = function(username, msg, msgclass) {
|
||||||
|
|
Loading…
Reference in New Issue