Commit 480d2730 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

don't send full user info to clients in global join event

parent 29c4c80d
...@@ -67,7 +67,7 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString ...@@ -67,7 +67,7 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
users.insert(name, session); users.insert(name, session);
Event_UserJoined *event = new Event_UserJoined(new ServerInfo_User(data)); Event_UserJoined *event = new Event_UserJoined(new ServerInfo_User(data, false));
for (int i = 0; i < clients.size(); ++i) for (int i = 0; i < clients.size(); ++i)
if (clients[i]->getAcceptsUserListChanges()) if (clients[i]->getAcceptsUserListChanges())
clients[i]->sendProtocolItem(event, false); clients[i]->sendProtocolItem(event, false);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment