summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-13 19:30:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-13 19:30:03 +0300
commitf2a4cf2dde41017c199cdf51044180df6e6ff193 (patch)
treed9ee75e483dddfc5d744e607acb2d7141fcc88b1 /src/net/eathena/chathandler.cpp
parent62c8531e9f937cdb8caa086b9cd893564dbc6e79 (diff)
downloadplus-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.cpp12
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);
}