aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Authentication/AuthCodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/authserver/Authentication/AuthCodes.cpp')
-rw-r--r--src/server/authserver/Authentication/AuthCodes.cpp42
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));
+ }
};