From 405cb22058d46d0773685ff0ff17794fd62b2bc3 Mon Sep 17 00:00:00 2001 From: GiantCrocodile Date: Tue, 25 Mar 2014 19:12:22 +0100 Subject: [PATCH] fixed banresult --- src/realmd/AuthSocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/realmd/AuthSocket.cpp b/src/realmd/AuthSocket.cpp index 18b51e0b2..55d803a58 100644 --- a/src/realmd/AuthSocket.cpp +++ b/src/realmd/AuthSocket.cpp @@ -421,8 +421,8 @@ bool AuthSocket::_HandleLogonChallenge() if (!locked) { ///- If the account is banned, reject the logon attempt - 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()); + 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()); if (banresult) { if ((*banresult)[0].GetUInt64() == (*banresult)[1].GetUInt64())