Revise who muted users can PM

- namely, whoever can PM them
- this makes more sense than a custom 'receivemutedpms' permission
This commit is contained in:
Guangcong Luo
2012-04-28 17:28:22 -04:00
parent ccea8b5f2d
commit 2d1de207b3
2 changed files with 4 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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",