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
|
|
@ -111,6 +111,9 @@ int ServerSocketInterface::getUserIdInDB(const QString &name) const
|
|||
|
||||
ResponseCode ServerSocketInterface::cmdAddToList(Command_AddToList *cmd, CommandContainer *cont)
|
||||
{
|
||||
if (authState != PasswordRight)
|
||||
return RespFunctionNotAllowed;
|
||||
|
||||
QString list = cmd->getList();
|
||||
QString user = cmd->getUserName();
|
||||
|
||||
|
|
@ -148,6 +151,9 @@ ResponseCode ServerSocketInterface::cmdAddToList(Command_AddToList *cmd, Command
|
|||
|
||||
ResponseCode ServerSocketInterface::cmdRemoveFromList(Command_RemoveFromList *cmd, CommandContainer *cont)
|
||||
{
|
||||
if (authState != PasswordRight)
|
||||
return RespFunctionNotAllowed;
|
||||
|
||||
QString list = cmd->getList();
|
||||
QString user = cmd->getUserName();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue