mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-30 23:50:19 -07:00
is_admin=2 fix
This commit is contained in:
@@ -236,7 +236,7 @@ bool Servatrice::userExists(const QString &user)
|
|||||||
ServerInfo_User *Servatrice::evalUserQueryResult(const QSqlQuery &query, bool complete)
|
ServerInfo_User *Servatrice::evalUserQueryResult(const QSqlQuery &query, bool complete)
|
||||||
{
|
{
|
||||||
QString name = query.value(0).toString();
|
QString name = query.value(0).toString();
|
||||||
bool is_admin = query.value(1).toInt();
|
int is_admin = query.value(1).toInt();
|
||||||
QString realName = query.value(2).toString();
|
QString realName = query.value(2).toString();
|
||||||
QString genderStr = query.value(3).toString();
|
QString genderStr = query.value(3).toString();
|
||||||
QString country = query.value(4).toString();
|
QString country = query.value(4).toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user