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
6ca1d1f0
Commit
6ca1d1f0
authored
Dec 18, 2011
by
Max-Wilhelm Bruker
Browse files
server crash fix
parent
ca3a7e69
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_protocolhandler.cpp
View file @
6ca1d1f0
...
...
@@ -147,6 +147,8 @@ ResponseCode Server_ProtocolHandler::processCommandHelper(Command *command, Comm
ModeratorCommand
*
moderatorCommand
=
qobject_cast
<
ModeratorCommand
*>
(
command
);
if
(
moderatorCommand
)
{
qDebug
()
<<
"received ModeratorCommand"
;
if
(
!
userInfo
)
return
RespLoginNeeded
;
if
(
!
(
userInfo
->
getUserLevel
()
&
ServerInfo_User
::
IsModerator
))
return
RespLoginNeeded
;
...
...
@@ -158,6 +160,8 @@ ResponseCode Server_ProtocolHandler::processCommandHelper(Command *command, Comm
AdminCommand
*
adminCommand
=
qobject_cast
<
AdminCommand
*>
(
command
);
if
(
adminCommand
)
{
qDebug
()
<<
"received AdminCommand"
;
if
(
!
userInfo
)
return
RespLoginNeeded
;
if
(
!
(
userInfo
->
getUserLevel
()
&
ServerInfo_User
::
IsAdmin
))
return
RespLoginNeeded
;
...
...
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