Changeset 34 for trunk/src/trinityrealm/AuthSocket.cpp
- Timestamp:
- 11/19/08 13:25:37 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trinityrealm/AuthSocket.cpp
r2 r34 370 370 ///- Check if the client has one of the expected version numbers 371 371 bool valid_version=false; 372 int accepted_versions[]=EXPECTED_MANGOS_CLIENT_BUILD;373 for(int i=0;accepted_versions[i];i++) 374 if(ch->build==accepted_versions[i]) 375 { 372 int MinBuild = sConfig.GetIntDefault("MinBuild", 8606); 373 int MaxBuild = sConfig.GetIntDefault("MaxBuild", 8606); 374 375 if(ch->build >= MinBuild && ch->build <= MaxBuild) 376 376 valid_version=true; 377 377 break; 378 378 } 379 else 380 valid_version=false; 379 381 380 382 /// <ul><li> if this is a valid version