diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/chathandler.cpp | 6 | ||||
-rw-r--r-- | src/net/ea/chathandler.h | 2 |
2 files changed, 8 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 diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h index 5ceccc0c2..49909ad6f 100644 --- a/src/net/ea/chathandler.h +++ b/src/net/ea/chathandler.h @@ -55,6 +55,8 @@ class ChatHandler : public Net::ChatHandler virtual void processIgnoreAllResponse(Net::MessageIn &msg) const; + void clear() override final; + protected: typedef std::queue<std::string> WhisperQueue; WhisperQueue mSentWhispers; |