Fix minor issues with emote rename
This commit is contained in:
parent
8e3ce4e1c3
commit
8434d20826
3 changed files with 7 additions and 4 deletions
|
|
@ -168,12 +168,11 @@ EmoteModule.prototype.handleRenameEmote = function (user, data) {
|
|||
return;
|
||||
}
|
||||
|
||||
this.emotes.renameEmote(Object.assign({}, f));
|
||||
|
||||
var chan = this.channel;
|
||||
chan.broadcastAll("renameEmote", f);
|
||||
chan.logger.log(`[mod] ${user.getName()} renamed emote: ${f.old} -> ${f.name}`);
|
||||
|
||||
// Doing this after the broadcast because this function deletes the "old" prop
|
||||
this.emotes.renameEmote(f);
|
||||
};
|
||||
|
||||
EmoteModule.prototype.handleUpdateEmote = function (user, data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue