mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-30 13:18:30 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user