diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-31 21:18:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-31 21:18:07 +0300 |
commit | 4fdc8519f954bf14f01b46c88fc2c0818a9c22b3 (patch) | |
tree | 7459f46d531f16609ac2a440dd5b513e2ec4bdda /src/localplayer.cpp | |
parent | 9b1ff248d5f261a947aeaea4f5c720040c266c8b (diff) | |
download | manaverse-4fdc8519f954bf14f01b46c88fc2c0818a9c22b3.tar.gz manaverse-4fdc8519f954bf14f01b46c88fc2c0818a9c22b3.tar.bz2 manaverse-4fdc8519f954bf14f01b46c88fc2c0818a9c22b3.tar.xz manaverse-4fdc8519f954bf14f01b46c88fc2c0818a9c22b3.zip |
Fix for disabled away in chat tab.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index e94a9bed1..a6ed4c00a 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -3115,9 +3115,9 @@ void LocalPlayer::afkRespond(ChatTab *tab, const std::string &nick) std::string msg = "*AFK*: " + config.getStringValue("afkMessage"); - Net::getChatHandler()->privateMessage(nick, msg); if (!tab) { + Net::getChatHandler()->privateMessage(nick, msg); if (localChatTab) { localChatTab->chatLog(getName() + " : " + msg, @@ -3128,6 +3128,7 @@ void LocalPlayer::afkRespond(ChatTab *tab, const std::string &nick) { if (tab->getNoAway()) return; + Net::getChatHandler()->privateMessage(nick, msg); tab->chatLog(getName(), msg); } mAfkTime = cur_time; |