mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
don't pm people ignoring you
This commit is contained in:
parent
0afdbc7222
commit
1bee788210
9 changed files with 36 additions and 5 deletions
|
|
@ -281,6 +281,8 @@ ResponseCode Server_ProtocolHandler::cmdMessage(Command_Message *cmd, CommandCon
|
|||
Server_ProtocolHandler *userHandler = server->getUsers().value(receiver);
|
||||
if (!userHandler)
|
||||
return RespNameNotFound;
|
||||
if (userHandler->getIgnoreList().contains(userInfo->getName()))
|
||||
return RespInIgnoreList;
|
||||
|
||||
cont->enqueueItem(new Event_Message(userInfo->getName(), receiver, cmd->getText()));
|
||||
userHandler->sendProtocolItem(new Event_Message(userInfo->getName(), receiver, cmd->getText()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue