Fixed possible crash, by toshik
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -1066,7 +1066,7 @@ int ChatHandler::ParseCommands(const char* text)
|
|||||||
|
|
||||||
std::string fullcmd = text;
|
std::string fullcmd = text;
|
||||||
|
|
||||||
if (m_session->GetSecurity() <= SEC_PLAYER && sWorld.getConfig(CONFIG_ALLOW_PLAYER_COMMANDS) == 0)
|
if (m_session && m_session->GetSecurity() <= SEC_PLAYER && sWorld.getConfig(CONFIG_ALLOW_PLAYER_COMMANDS) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (m_session && !m_session->HandleOnPlayerChat(text))
|
if (m_session && !m_session->HandleOnPlayerChat(text))
|
||||||
|
|||||||
Reference in New Issue
Block a user