summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-25 19:59:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-25 19:59:56 +0300
commitbf6ec88a01fa3d7197a3029d1ee1e746ab9c34fb (patch)
tree9e489e970c1634c576cfbb39f9a64e89a20dcd06 /src/gui
parent4825dc84e992c8cbbdba44d10afb52f502f64d17 (diff)
downloadmanaplus-bf6ec88a01fa3d7197a3029d1ee1e746ab9c34fb.tar.gz
manaplus-bf6ec88a01fa3d7197a3029d1ee1e746ab9c34fb.tar.bz2
manaplus-bf6ec88a01fa3d7197a3029d1ee1e746ab9c34fb.tar.xz
manaplus-bf6ec88a01fa3d7197a3029d1ee1e746ab9c34fb.zip
eathena: fix join built in channel tabs.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/chatwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 7c32a6298..4324acca5 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1205,13 +1205,17 @@ ChatTab *ChatWindow::addSpecialChannelTab(const std::string &name,
{
tradeChatTab = new TradeTab(chatWindow);
tradeChatTab->setAllowHighlight(false);
+ chatHandler->joinChannel(tradeChatTab->getChannelName());
}
ret = tradeChatTab;
}
else if (name == GM_CHANNEL)
{
if (!gmChatTab)
+ {
gmChatTab = new GmTab(chatWindow);
+ chatHandler->joinChannel(gmChatTab->getChannelName());
+ }
ret = gmChatTab;
}
if (switchTo)
@@ -1279,6 +1283,8 @@ void ChatWindow::postConnection()
return;
chatHandler->joinChannel(tab->getChannelName());
}
+ if (langChatTab)
+ chatHandler->joinChannel(langChatTab->getChannelName());
}
#define changeColor(fun) \