mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Bugfix for chat refactoring
This commit is contained in:
parent
ab48c6aa50
commit
789471f395
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue