Skip to content

Commit

Permalink
Allow muted players to talk with their gang
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellLVP committed Jun 21, 2020
1 parent 069d3b4 commit b55f225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions javascript/features/communication/communication_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down

0 comments on commit b55f225

Please sign in to comment.