From 60c6d462e4b1c2c43fe1e8ba47a962ef5e4dc6aa Mon Sep 17 00:00:00 2001 From: silinoron Date: Mon, 27 Dec 2010 09:02:02 -0800 Subject: Core/Authserver: Significant cleanup in preparation for a rewrite. Dropped support for running as a service on windows; it may be back in some form later. Otherwise there should be no functional changes. --HG-- branch : trunk --- src/server/authserver/Authentication/AuthCodes.cpp | 42 +++++++++++----------- 1 file changed, 20 insertions(+), 22 deletions(-) (limited to 'src/server/authserver/Authentication/AuthCodes.cpp') diff --git a/src/server/authserver/Authentication/AuthCodes.cpp b/src/server/authserver/Authentication/AuthCodes.cpp index 01ead12a582..59969670921 100644 --- a/src/server/authserver/Authentication/AuthCodes.cpp +++ b/src/server/authserver/Authentication/AuthCodes.cpp @@ -2,32 +2,30 @@ namespace AuthHelper { + bool IsPreBCAcceptedClientBuild(int build) + { + int accepted_versions[] = PRE_BC_ACCEPTED_CLIENT_BUILD; -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; + for (int i = 0; accepted_versions[i]; ++i) + if (build == accepted_versions[i]) + return true; - return false; -} + return false; + } -bool IsPostBCAcceptedClientBuild(int build) -{ - int accepted_versions[] = POST_BC_ACCEPTED_CLIENT_BUILD; + 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; + for (int i = 0; accepted_versions[i]; ++i) + if (build == accepted_versions[i]) + return true; - return false; -} - -bool IsAcceptedClientBuild(int build) -{ - return (IsPostBCAcceptedClientBuild(build) || IsPreBCAcceptedClientBuild(build)); -} + return false; + } + bool IsAcceptedClientBuild(int build) + { + return (IsPostBCAcceptedClientBuild(build) || IsPreBCAcceptedClientBuild(build)); + } }; -- cgit v1.2.3