Jump to content

marry521

Members
  • Posts

    54
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by marry521

  1. Can be the DBC question, what DBC I select is 3.0.5
  2. it does work on both rank 3-1 and 0 (player) too.
  3. What bug does the patch fix? What features does the patch add? The aspect revises the client side correspondence edition number For which repository revision was the patch created? 6909 Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread. dont know Who has been writing this patch? Please include either forum user names or email addresses. patch from imconfig! --- a/src/realmd/AuthCodes.h +++ b/src/realmd/AuthCodes.h @@ -68,6 +68,6 @@ enum LoginResult // others will not and opposite // will only support WoW and WoW:TBC 2.4.3 client build 8606... -#define EXPECTED_MANGOS_CLIENT_BUILD {8606, 0} +//#define EXPECTED_MANGOS_CLIENT_BUILD {8606, 0} // Using option from realmd.conf in impconfig #endif diff --git a/src/realmd/AuthSocket.cpp b/src/realmd/AuthSocket.cpp index 987e1d2..195b908 100644 --- a/src/realmd/AuthSocket.cpp +++ b/src/realmd/AuthSocket.cpp @@ -508,15 +508,13 @@ bool AuthSocket::_HandleLogonProof() ///- Check if the client has one of the expected version numbers bool valid_version=false; - int accepted_versions[]=EXPECTED_MANGOS_CLIENT_BUILD; - for(int i=0;accepted_versions[i];i++) - { - if(_build==accepted_versions[i]) - { + int MinBuild = sConfig.GetIntDefault("MinBuild", 8606); + int MaxBuild = sConfig.GetIntDefault("MaxBuild", 8606); + + if(_build >= MinBuild && _build <= MaxBuild) valid_version=true; - break; - } - } + else + valid_version=false; /// <ul>[*] If the client has no valid version if(!valid_version) diff --git a/src/realmd/realmd.conf.dist.in b/src/realmd/realmd.conf.dist.in index 217cb15..6ce9e08 100644 --- a/src/realmd/realmd.conf.dist.in +++ b/src/realmd/realmd.conf.dist.in @@ -114,3 +114,19 @@ RealmsStateUpdateDelay = 20 WrongPass.MaxCount = 0 WrongPass.BanTime = 600 WrongPass.BanType = 0 + +################################################################################################################### +# CUSTOM OPTIONS +# +# Client Builds: +# +# MinBuild +# The minium client build allowed to connect +# +# MaxBuild +# The maximum client build allowed to connect +# +################################################################################################################### + +MinBuild = 8606 +MaxBuild = 8606
  4. :rolleyes: For instance uses some weapon only to limit 3 day of life, this function is good, who can realize this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use