summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-22 23:44:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-22 23:44:03 +0300
commit574e82dd46aa8a035c69917ccecbfd334b0e61f7 (patch)
treeb6dcd46fb7dc1715004e1da79290a7cebca26e58 /src/net/eathena/chathandler.cpp
parent3e9ae8d8328fbd9c86b3c1d51d87601dcf0d7c48 (diff)
downloadmanaverse-574e82dd46aa8a035c69917ccecbfd334b0e61f7.tar.gz
manaverse-574e82dd46aa8a035c69917ccecbfd334b0e61f7.tar.bz2
manaverse-574e82dd46aa8a035c69917ccecbfd334b0e61f7.tar.xz
manaverse-574e82dd46aa8a035c69917ccecbfd334b0e61f7.zip
Fix possible crash in channels net code.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 950363350..e7b8e66ec 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -393,7 +393,7 @@ void ChatHandler::processColorChat(Net::MessageIn &msg)
}
else
{
- const std::string nick = mSentWhispers.front();
+ const std::string nick = getLastWhisperNick();
if (nick.size() > 1 && nick[0] == '#')
{
if (message == strprintf("[ %s ] %s : \302\202\302",