diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-13 19:30:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-13 19:30:03 +0300 |
commit | f2a4cf2dde41017c199cdf51044180df6e6ff193 (patch) | |
tree | d9ee75e483dddfc5d744e607acb2d7141fcc88b1 /src/net/eathena/chathandler.cpp | |
parent | 62c8531e9f937cdb8caa086b9cd893564dbc6e79 (diff) | |
download | plus-f2a4cf2dde41017c199cdf51044180df6e6ff193.tar.gz plus-f2a4cf2dde41017c199cdf51044180df6e6ff193.tar.bz2 plus-f2a4cf2dde41017c199cdf51044180df6e6ff193.tar.xz plus-f2a4cf2dde41017c199cdf51044180df6e6ff193.zip |
eathena: on non existing channels fix whisper error messages.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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); } |