diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-06-08 15:34:24 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2014-06-08 15:34:24 +0200 |
| commit | 9f69eda67f7fad50553f8d569851a5005437e677 (patch) | |
| tree | b918ef48a31a1970aad165808be344cf4744ef26 /src/server/authserver/Authentication | |
| parent | 05c0524bf3d97ba29496fa13e93acd3b8d7d37a4 (diff) | |
Core/Battle.net: Additional checks
* Force grunt login for versions < 15595
* Force bn login if supported and game account is linked to bn account
Diffstat (limited to 'src/server/authserver/Authentication')
| -rw-r--r-- | src/server/authserver/Authentication/AuthCodes.cpp | 5 | ||||
| -rw-r--r-- | src/server/authserver/Authentication/AuthCodes.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/server/authserver/Authentication/AuthCodes.cpp b/src/server/authserver/Authentication/AuthCodes.cpp index bb278dd6653..7a4998f7028 100644 --- a/src/server/authserver/Authentication/AuthCodes.cpp +++ b/src/server/authserver/Authentication/AuthCodes.cpp @@ -79,4 +79,9 @@ namespace AuthHelper return NULL; } + + bool IsBuildSupportingBattlenet(int build) + { + return build >= 15595; + } }; diff --git a/src/server/authserver/Authentication/AuthCodes.h b/src/server/authserver/Authentication/AuthCodes.h index 57db55c98a8..a6113b0d26d 100644 --- a/src/server/authserver/Authentication/AuthCodes.h +++ b/src/server/authserver/Authentication/AuthCodes.h @@ -182,6 +182,7 @@ namespace AuthHelper bool IsAcceptedClientBuild(int build); bool IsPostBCAcceptedClientBuild(int build); bool IsPreBCAcceptedClientBuild(int build); + bool IsBuildSupportingBattlenet(int build); }; #endif |
