From a14351b77a7d2901a68adb95f55cea152de2a52a Mon Sep 17 00:00:00 2001 From: Relados Date: Fri, 29 Aug 2014 22:29:57 -0400 Subject: [PATCH] Prevent use of modnote while locked or muted Like all other moderator commands, being locked or muted should prevent usage of modnote. --- commands.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands.js b/commands.js index 308daa6bd9..986b324282 100644 --- a/commands.js +++ b/commands.js @@ -803,6 +803,8 @@ var commands = exports.commands = { mn: 'modnote', modnote: function (target, room, user, connection) { if (!target) return this.parse('/help modnote'); + if (user.locked || user.mutedRooms[room.id]) return this.sendReply("You cannot do this while unable to talk."); + if (target.length > MAX_REASON_LENGTH) { return this.sendReply("The note is too long. It cannot exceed " + MAX_REASON_LENGTH + " characters."); }