mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-01 15:49:58 -08:00
don't pm people ignoring you
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user