diff options
author | silinoron <none@none> | 2010-12-27 09:02:02 -0800 |
---|---|---|
committer | silinoron <none@none> | 2010-12-27 09:02:02 -0800 |
commit | 60c6d462e4b1c2c43fe1e8ba47a962ef5e4dc6aa (patch) | |
tree | e047e4dfbcfdca26deaaac431d32d183e4e363ae /src/server/authserver/Authentication/AuthCodes.cpp | |
parent | dd745ef3264aa7a63a4bfaf0bb755aa3b410e7fe (diff) |
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
Diffstat (limited to 'src/server/authserver/Authentication/AuthCodes.cpp')
-rw-r--r-- | src/server/authserver/Authentication/AuthCodes.cpp | 42 |
1 files changed, 20 insertions, 22 deletions
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)); + } }; |