aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Authentication/AuthCodes.cpp
diff options
context:
space:
mode:
authorsilinoron <none@none>2010-12-04 11:19:41 -0800
committersilinoron <none@none>2010-12-04 11:19:41 -0800
commitb8bf37264b4a947e66fe29b29eb9b60ebe3d6f3c (patch)
tree9a61d646fca6ba6702782d63cd8194dc315afda9 /src/server/authserver/Authentication/AuthCodes.cpp
parent3201338eace39973301d5e398772cef49eb6f85b (diff)
Core/Authserver: Cleanup.
--HG-- branch : trunk
Diffstat (limited to 'src/server/authserver/Authentication/AuthCodes.cpp')
-rw-r--r--src/server/authserver/Authentication/AuthCodes.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/server/authserver/Authentication/AuthCodes.cpp b/src/server/authserver/Authentication/AuthCodes.cpp
index 812949e0823..01ead12a582 100644
--- a/src/server/authserver/Authentication/AuthCodes.cpp
+++ b/src/server/authserver/Authentication/AuthCodes.cpp
@@ -6,26 +6,22 @@ namespace AuthHelper
bool IsPreBCAcceptedClientBuild(int build)
{
int accepted_versions[] = PRE_BC_ACCEPTED_CLIENT_BUILD;
+
for (int i = 0; accepted_versions[i]; ++i)
- {
if (build == accepted_versions[i])
- {
return true;
- }
- }
+
return false;
}
bool IsPostBCAcceptedClientBuild(int build)
{
int accepted_versions[] = POST_BC_ACCEPTED_CLIENT_BUILD;
+
for (int i = 0; accepted_versions[i]; ++i)
- {
if (build == accepted_versions[i])
- {
return true;
- }
- }
+
return false;
}