diff --git a/chat-commands.js b/chat-commands.js index 42f1ab4bdb..254edfa47a 100644 --- a/chat-commands.js +++ b/chat-commands.js @@ -429,9 +429,8 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { } return parseCommand(user, '?', cmd, room, socket); } - if (user.muted && !targetUser.can('receivemutedpms')) { - // TODO: Remove the hardcoding of groups in this message - socket.emit('console', 'You can only private message users marked by %, @, or & when muted.'); + if (user.muted && !targetUser.can('mute', user)) { + socket.emit('console', 'You can only private message moderators (users marked by %, @, or & when muted).'); return false; } diff --git a/config/config-example.js b/config/config-example.js index 772b82587f..3d466a91e4 100644 --- a/config/config-example.js +++ b/config/config-example.js @@ -113,10 +113,9 @@ exports.groups = { jurisdiction: 'su', ban: 'u', mute: 'u', + namelock: 'u', forcerename: 'u', - redirect: true, - receivemutedpms: true, - namelock: 'u' + redirect: true }, '+': { id: "voice",