Skip to content
Permalink
Browse files
Allow muted players to talk with their gang
  • Loading branch information
RussellLVP committed Jun 21, 2020
1 parent 069d3b4 commit b55f225d9a6a42372a25e0d88f939fb3f1c8a4a7
Showing 1 changed file with 3 additions and 2 deletions.
@@ -127,10 +127,11 @@ export class CommunicationManager {
}

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

0 comments on commit b55f225

Please sign in to comment.