mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-01-17 00:04:52 -05:00
this check is deprecated as we do it in setGodMode now
This commit is contained in:
@@ -208,17 +208,6 @@ Client::Client(ConnectionServerConnection &connection, const NetworkId &characte
|
||||
connectToEmitter(connection, "ConnectionServerConnectionClosed");
|
||||
connectToEmitter(connection, "ConnectionServerConnectionDestroyed");
|
||||
|
||||
// Check god permissions
|
||||
if (ConfigServerGame::getAdminGodToAll() || ((!ConfigServerGame::getUseSecureLoginForGodAccess() || m_isSecure) &&
|
||||
AdminAccountManager::isAdminAccount(Unicode::toLower(accountName), m_godLevel) &&
|
||||
(!ConfigServerGame::getUseIPForGodAccess() ||
|
||||
AdminAccountManager::isInternalIp(ipAddr)))) {
|
||||
m_godValidated = true;
|
||||
if (ConfigServerGame::getAdminGodToAll()) {
|
||||
m_godLevel = ConfigServerGame::getAdminGodToAllGodLevel();
|
||||
}
|
||||
}
|
||||
|
||||
// See if our controlled object is ready yet.
|
||||
ServerObject *obj = LogoutTracker::findPendingCharacterSave(characterObjectId);
|
||||
if (obj) {
|
||||
|
||||
Reference in New Issue
Block a user