Add message for /clear

This commit is contained in:
Calvin Montgomery 2017-01-23 21:06:42 -08:00
parent 27e168ba8b
commit bec55bc3d1

View file

@ -461,7 +461,8 @@ ChatModule.prototype.handleCmdClear = function (user, msg, meta) {
}
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");
};