From f2a4cf2dde41017c199cdf51044180df6e6ff193 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 Oct 2014 19:30:03 +0300 Subject: eathena: on non existing channels fix whisper error messages. --- src/net/eathena/chathandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 8e7417427..dd4618482 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -390,6 +390,18 @@ void ChatHandler::processColorChat(Net::MessageIn &msg) return; } } + else + { + const std::string nick = mSentWhispers.front(); + if (nick.size() > 1 && nick[0] == '#') + { + if (message == strprintf("[ %s ] %s : \302\202\302", + nick.c_str(), localPlayer->getName().c_str())) + { + mSentWhispers.pop(); + } + } + } processChatContinue(message, ChatMsgType::BY_UNKNOWN); } -- cgit v1.2.3-70-g09d2