aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/AuthSocket.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2008-10-10 13:37:21 -0500
committerXTZGZoReX <none@none>2008-10-10 13:37:21 -0500
commit479fe8b767c833ae5055af31a800738ba8e597ad (patch)
tree85c0f9a54fc581085702aa0916ecdf694b0b2b1d /src/trinityrealm/AuthSocket.cpp
parentded2714f89267e10b99ba725353afefe37b71645 (diff)
[svn] * Removing useless data accidentally committed.
* Applying ImpConfig patch. * Note: QUEUE_FOR_GM currently disabled as it's not compatible with the ACE patch. Anyone care to rewrite it? * Note2: This is untested - I may have done some mistakes here and there. Will try to compile now. --HG-- branch : trunk
Diffstat (limited to 'src/trinityrealm/AuthSocket.cpp')
-rw-r--r--src/trinityrealm/AuthSocket.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/trinityrealm/AuthSocket.cpp b/src/trinityrealm/AuthSocket.cpp
index 816a1d32538..0fd2726470d 100644
--- a/src/trinityrealm/AuthSocket.cpp
+++ b/src/trinityrealm/AuthSocket.cpp
@@ -369,13 +369,15 @@ bool AuthSocket::_HandleLogonChallenge()
///- Check if the client has one of the expected version numbers
bool valid_version=false;
- int accepted_versions[]=EXPECTED_MANGOS_CLIENT_BUILD;
- for(int i=0;accepted_versions[i];i++)
- if(ch->build==accepted_versions[i])
- {
+ int MinBuild = sConfig.GetIntDefault("MinBuild", 8606);
+ int MaxBuild = sConfig.GetIntDefault("MaxBuild", 8606);
+
+ if(ch->build >= MinBuild && ch->build <= MaxBuild)
valid_version=true;
break;
}
+ else
+ valid_version=false;
/// <ul><li> if this is a valid version
if(valid_version)