summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-09 13:08:32 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-09 13:08:32 +0300
commitb14ce2338cecce0d6b01c46a0f9058e4cb514bcf (patch)
tree98fb0f7567a635d73b7e7f9e0c649f95b40a3e71 /src/net/ea/chathandler.cpp
parentf69bb947dc7be4c44b8d1c86dec3a8b1214a80aa (diff)
downloadmanaplus-b14ce2338cecce0d6b01c46a0f9058e4cb514bcf.tar.gz
manaplus-b14ce2338cecce0d6b01c46a0f9058e4cb514bcf.tar.bz2
manaplus-b14ce2338cecce0d6b01c46a0f9058e4cb514bcf.tar.xz
manaplus-b14ce2338cecce0d6b01c46a0f9058e4cb514bcf.zip
fix motd message while changing char or reconnecting to server.
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index 6346f63ff..265f59cb1 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -53,6 +53,12 @@ ChatHandler::ChatHandler() :
{
}
+void ChatHandler::clear()
+{
+ mShowMotd = config.getBoolValue("showmotd");
+ mSkipping = true;
+}
+
void ChatHandler::me(const std::string &text, const std::string &channel) const
{
// here need string duplication