From c46d3bf9b094dc2616fb6f2734d585dc6651423d Mon Sep 17 00:00:00 2001 From: fgenesis Date: Tue, 19 Oct 2010 22:26:52 +0200 Subject: [PATCH] [10465] Fix bad bandate check. --- src/realmd/AuthSocket.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/realmd/AuthSocket.cpp b/src/realmd/AuthSocket.cpp index 6f6896ae5..f4359f9b7 100644 --- a/src/realmd/AuthSocket.cpp +++ b/src/realmd/AuthSocket.cpp @@ -414,7 +414,7 @@ bool AuthSocket::_HandleLogonChallenge() "id = %u AND active = 1 AND (unbandate > UNIX_TIMESTAMP() OR unbandate = bandate)", (*result)[1].GetUInt32()); if(banresult) { - if((*banresult)[0].GetUInt64() != (*banresult)[1].GetUInt64()) + if((*banresult)[0].GetUInt64() == (*banresult)[1].GetUInt64()) { pkt << (uint8) WOW_FAIL_BANNED; BASIC_LOG("[AuthChallenge] Banned account %s tries to login!",_login.c_str ()); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index abeef1651..d061556f1 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10625" + #define REVISION_NR "10465" #endif // __REVISION_NR_H__