Permalink
Browse files

Have `/r` respect `/ignore`

Fixes #424
  • Loading branch information...
RussellLVP committed Jan 8, 2017
1 parent 49f7db7 commit 7cfbcaafa0c00745641ff91dec74f7351fa58da5
Showing with 10 additions and 0 deletions.
  1. +10 −0 pawn/Features/Gameplay/Communication/PrivateMessagingCommands.pwn
@@ -120,6 +120,16 @@ class PrivateMessagingCommands {
return 1;
}
if (LegacyIsPlayerIgnored(playerId, lastMessageSenderId)) {
SendClientMessage(playerId, Color::Error, "You're currently ignoring this player. Use /unignore!");
return 1;
}
if (LegacyIsPlayerIgnored(lastMessageSenderId, playerId)) {
SendClientMessage(playerId, Color::Error, "This player is currently ignoring you.");
return 1;
}
new sender[25];
format(sender, sizeof(sender), "%s", Player(playerId)->nicknameString());

0 comments on commit 7cfbcaa

Please sign in to comment.