From 4fdc8519f954bf14f01b46c88fc2c0818a9c22b3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 31 Mar 2011 21:18:07 +0300 Subject: Fix for disabled away in chat tab. --- src/localplayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2