summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-31 21:18:07 +0300
committerAndrei Karas <akaras@inbox.ru>2011-03-31 21:18:07 +0300
commit4fdc8519f954bf14f01b46c88fc2c0818a9c22b3 (patch)
tree7459f46d531f16609ac2a440dd5b513e2ec4bdda
parent9b1ff248d5f261a947aeaea4f5c720040c266c8b (diff)
downloadmv-4fdc8519f954bf14f01b46c88fc2c0818a9c22b3.tar.gz
mv-4fdc8519f954bf14f01b46c88fc2c0818a9c22b3.tar.bz2
mv-4fdc8519f954bf14f01b46c88fc2c0818a9c22b3.tar.xz
mv-4fdc8519f954bf14f01b46c88fc2c0818a9c22b3.zip
Fix for disabled away in chat tab.
-rw-r--r--src/localplayer.cpp3
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;