Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
480d2730
Commit
480d2730
authored
Mar 12, 2011
by
Max-Wilhelm Bruker
Browse files
don't send full user info to clients in global join event
parent
29c4c80d
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server.cpp
View file @
480d2730
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment