summaryrefslogtreecommitdiff
path: root/src/chathandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chathandler.cpp')
-rw-r--r--src/chathandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chathandler.cpp b/src/chathandler.cpp
index f3bf38b1..b6cd4f54 100644
--- a/src/chathandler.cpp
+++ b/src/chathandler.cpp
@@ -27,6 +27,9 @@
void ChatHandler::receiveMessage(NetComputer &computer, MessageIn &message)
{
+ if (computer.getAccount() == NULL)
+ return;
+
switch (message.getId())
{
case CMSG_SAY: