aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-28 06:53:39 +0100
committern0n4m3 <none@none>2009-12-28 06:53:39 +0100
commitf9290edc71ad83023cccd63323f7be758e3e2956 (patch)
treec04de783647748323e1ed64b24c44103d8c6a515 /src/game/Chat.cpp
parent0a105ddade56601fa3cf773fa7286d1e399c564e (diff)
Fixed possible crash, by toshik
--HG-- branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r--src/game/Chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index b261631385d..667ab814fba 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -1066,7 +1066,7 @@ int ChatHandler::ParseCommands(const char* 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;
if (m_session && !m_session->HandleOnPlayerChat(text))