Skip to content

Commit b55f225

Browse files
committed
Allow muted players to talk with their gang
1 parent 069d3b4 commit b55f225

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

javascript/features/communication/communication_manager.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ export class CommunicationManager {
127127
}
128128

129129
// The |player| might be muted themselves. The message will be dropped, and we'll show them
130-
// an informative message about when the mute is due to expire.
130+
// an informative message about when the mute is due to expire. Muted players may continue
131+
// to chat with administrators and their gang.
131132
{
132133
const remainingSeconds = this.muteManager_.getPlayerRemainingMuteTime(player);
133-
if (remainingSeconds > 0 && unprocessedMessage[0] != '@') {
134+
if (remainingSeconds > 0 && ![ '@', '!' ].includes(unprocessedMessage[0])) {
134135
const expiration = new Date(Date.now() + remainingSeconds * 1000);
135136
const formattedExpiration = relativeTime({ date1: new Date(), date2: expiration });
136137

0 commit comments

Comments
 (0)