diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-09 13:08:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-09 13:08:32 +0300 |
commit | b14ce2338cecce0d6b01c46a0f9058e4cb514bcf (patch) | |
tree | 98fb0f7567a635d73b7e7f9e0c649f95b40a3e71 /src/client.cpp | |
parent | f69bb947dc7be4c44b8d1c86dec3a8b1214a80aa (diff) | |
download | manaverse-b14ce2338cecce0d6b01c46a0f9058e4cb514bcf.tar.gz manaverse-b14ce2338cecce0d6b01c46a0f9058e4cb514bcf.tar.bz2 manaverse-b14ce2338cecce0d6b01c46a0f9058e4cb514bcf.tar.xz manaverse-b14ce2338cecce0d6b01c46a0f9058e4cb514bcf.zip |
fix motd message while changing char or reconnecting to server.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index bcaba2a40..e2ce0af74 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -75,6 +75,7 @@ #include "gui/widgets/button.h" #include "gui/widgets/desktop.h" +#include "net/chathandler.h" #include "net/gamehandler.h" #include "net/generalhandler.h" #include "net/guildhandler.h" @@ -823,6 +824,9 @@ void Client::gameClear() if (Net::getLoginHandler()) Net::getLoginHandler()->clearWorlds(); + if (Net::getChatHandler()) + Net::getChatHandler()->clear(); + #ifdef USE_MUMBLE delete mumbleManager; mumbleManager = nullptr; |