mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
fixed banresult
This commit is contained in:
parent
4c00026849
commit
405cb22058
1 changed files with 2 additions and 2 deletions
|
|
@ -421,8 +421,8 @@ bool AuthSocket::_HandleLogonChallenge()
|
||||||
if (!locked)
|
if (!locked)
|
||||||
{
|
{
|
||||||
///- If the account is banned, reject the logon attempt
|
///- If the account is banned, reject the logon attempt
|
||||||
QueryResult* banresult = LoginDatabase.PQuery("SELECT bandate,unbandate FROM account_banned WHERE "
|
QueryResult* banresult = LoginDatabase.PQuery("SELECT bandate,unbandate FROM account_banned WHERE
|
||||||
"id = %u AND active = 1 AND (unbandate > UNIX_TIMESTAMP() OR unbandate = bandate)", (*result)[1].GetUInt32());
|
id = %u AND active = '1' AND (unbandate > UNIX_TIMESTAMP() OR unbandate = bandate)", (*result)[1].GetUInt32());
|
||||||
if (banresult)
|
if (banresult)
|
||||||
{
|
{
|
||||||
if ((*banresult)[0].GetUInt64() == (*banresult)[1].GetUInt64())
|
if ((*banresult)[0].GetUInt64() == (*banresult)[1].GetUInt64())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue