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
8bb6bb04
Commit
8bb6bb04
authored
Aug 30, 2015
by
woogerboy21
Browse files
Merge pull request #1441 from woogerboy21/fix_check
Fix ban issue
parents
c0a07753
d8b53f93
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/serversocketinterface.cpp
View file @
8bb6bb04
...
@@ -777,7 +777,7 @@ Response::ResponseCode ServerSocketInterface::cmdBanFromServer(const Command_Ban
...
@@ -777,7 +777,7 @@ Response::ResponseCode ServerSocketInterface::cmdBanFromServer(const Command_Ban
userList
.
append
(
user
);
userList
.
append
(
user
);
}
}
if
(
userName
.
isEmpty
()
&&
address
.
isEmpty
())
{
if
(
userName
.
isEmpty
()
&&
address
.
isEmpty
()
&&
(
!
QString
::
fromStdString
(
cmd
.
clientid
()).
isEmpty
())
)
{
QSqlQuery
*
query
=
sqlInterface
->
prepareQuery
(
"select name from {prefix}_users where clientid = :client_id"
);
QSqlQuery
*
query
=
sqlInterface
->
prepareQuery
(
"select name from {prefix}_users where clientid = :client_id"
);
query
->
bindValue
(
":client_id"
,
QString
::
fromStdString
(
cmd
.
clientid
()));
query
->
bindValue
(
":client_id"
,
QString
::
fromStdString
(
cmd
.
clientid
()));
sqlInterface
->
execSqlQuery
(
query
);
sqlInterface
->
execSqlQuery
(
query
);
...
...
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