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
d8b53f93
Commit
d8b53f93
authored
Aug 30, 2015
by
woogerboy21
Browse files
Update ban check to exclude empty client id's
parent
c0a07753
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/serversocketinterface.cpp
View file @
d8b53f93
...
...
@@ -777,7 +777,7 @@ Response::ResponseCode ServerSocketInterface::cmdBanFromServer(const Command_Ban
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"
);
query
->
bindValue
(
":client_id"
,
QString
::
fromStdString
(
cmd
.
clientid
()));
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