summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crsm.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp
index e0fb715..fa713e9 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -123,7 +123,6 @@ ClientInfo* CRSM::parseClientInfo(QString& message)
int CUID = parts[1].toInt();
ClientInfo* ret = &getClientInfo(parts[0], CUID, parts[2]);
- ret->nick = parts[2];
return ret;
}
else
@@ -211,6 +210,25 @@ void CRSM::readServerOutput()
}
}
+ if(type == "Prm")
+ {
+ if(Session.Clonk.Server.players.contains(what))
+ {
+ Session.Clonk.Server.players.removeAll(what);
+ return;
+ }
+
+ for(ClientInfo& client : Session.Clonk.Clients)
+ {
+ if(client.players.contains(what))
+ {
+ client.players.removeAll(what);
+ return;
+ }
+ }
+ return;
+ }
+
ClientInfo* clientPtr = parseClientInfo(what);
if(clientPtr == nullptr)
{