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."); }