diff options
author | megamage <none@none> | 2009-01-12 10:53:53 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-12 10:53:53 -0600 |
commit | 4daadd712f46e85ee8754428dfc92e9ac91c9c47 (patch) | |
tree | d8f81f4a10f3bc4087b05a02d2e5b93f42d601bb /src/game/Chat.cpp | |
parent | 218f4c4c4b6cf3a91ad696d08d09085f480ccea8 (diff) |
*Update to Mangos 7072.
*Remove some duplicated functions of possess.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r-- | src/game/Chat.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 3ee8a3255a9..2b7b8fbbe41 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -712,14 +712,14 @@ bool ChatHandler::HasLowerSecurityAccount(WorldSession* target, uint32 target_ac { uint32 target_sec; - // ignore only for non-players for non strong checks (when allow apply command at least to same sec level) - if (m_session->GetSecurity() > SEC_PLAYER && !strong && !sWorld.getConfig(CONFIG_GM_LOWER_SECURITY)) - return false; - // allow everything from console and RA console if (!m_session) return false; + // ignore only for non-players for non strong checks (when allow apply command at least to same sec level) + if (m_session->GetSecurity() > SEC_PLAYER && !strong && !sWorld.getConfig(CONFIG_GM_LOWER_SECURITY)) + return false; + if (target) target_sec = target->GetSecurity(); else if (target_account) |