mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
server crash fix
This commit is contained in:
parent
a569a1b8b1
commit
f38c5f50ef
3 changed files with 4 additions and 2 deletions
|
|
@ -220,7 +220,7 @@ bool Servatrice::userExists(const QString &user)
|
|||
checkSql();
|
||||
|
||||
QSqlQuery query;
|
||||
query.prepare("select 1 from " + dbPrefix + "_users where name = :name");
|
||||
query.prepare("select 1 from " + dbPrefix + "_users where name = :name and active = 1");
|
||||
query.bindValue(":name", user);
|
||||
if (!execSqlQuery(query))
|
||||
return false;
|
||||
|
|
@ -423,4 +423,4 @@ void Servatrice::shutdownTimeout()
|
|||
deleteLater();
|
||||
}
|
||||
|
||||
const QString Servatrice::versionString = "Servatrice 0.20110625";
|
||||
const QString Servatrice::versionString = "Servatrice 0.20110803";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue