Add message for /clear

This commit is contained in:
Calvin Montgomery 2017-01-23 21:06:42 -08:00
parent 27e168ba8b
commit bec55bc3d1
1 changed files with 2 additions and 1 deletions

View File

@ -461,7 +461,8 @@ ChatModule.prototype.handleCmdClear = function (user, msg, meta) {
} }
this.buffer = []; this.buffer = [];
this.channel.broadcastAll("clearchat"); this.channel.broadcastAll("clearchat", { clearedBy: user.getName() });
this.sendModMessage(user.getName() + " cleared chat.", -1);
this.channel.logger.log("[mod] " + user.getName() + " used /clear"); this.channel.logger.log("[mod] " + user.getName() + " used /clear");
}; };