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
590ab2f5
Commit
590ab2f5
authored
Jan 19, 2013
by
Max-Wilhelm Bruker
Browse files
fixed #84: game creator couldn't re-join his game if the only buddies flag was set
parent
f1054392
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_game.cpp
View file @
590ab2f5
...
...
@@ -359,7 +359,7 @@ Response::ResponseCode Server_Game::checkJoin(ServerInfo_User *user, const QStri
return
Response
::
RespWrongPassword
;
if
(
!
(
user
->
user_level
()
&
ServerInfo_User
::
IsRegistered
)
&&
onlyRegistered
)
return
Response
::
RespUserLevelTooLow
;
if
(
onlyBuddies
)
if
(
onlyBuddies
&&
(
user
->
name
()
!=
creatorInfo
->
name
())
)
if
(
!
databaseInterface
->
isInBuddyList
(
QString
::
fromStdString
(
creatorInfo
->
name
()),
QString
::
fromStdString
(
user
->
name
())))
return
Response
::
RespOnlyBuddies
;
if
(
databaseInterface
->
isInIgnoreList
(
QString
::
fromStdString
(
creatorInfo
->
name
()),
QString
::
fromStdString
(
user
->
name
())))
...
...
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