summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-14 18:33:59 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-14 18:33:59 +0300
commit0b861120e4496f64c8014c7f7b3d0a8938cc7d51 (patch)
tree095bc7b9b9d50fc56b1fd3b2b19696d17780578e /src/gui/windows/chatwindow.cpp
parentf86221f5fe1bc54b3e643169d510b01f991e5f04 (diff)
downloadmanaplus-0b861120e4496f64c8014c7f7b3d0a8938cc7d51.tar.gz
manaplus-0b861120e4496f64c8014c7f7b3d0a8938cc7d51.tar.bz2
manaplus-0b861120e4496f64c8014c7f7b3d0a8938cc7d51.tar.xz
manaplus-0b861120e4496f64c8014c7f7b3d0a8938cc7d51.zip
Add support for #gm channel for gm tab.
In legacy servers it will use @wgm as before.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 1f3b165c5..7c32a6298 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -61,6 +61,7 @@
#include "gui/widgets/tabs/chat/battletab.h"
#include "gui/widgets/tabs/chat/channeltab.h"
+#include "gui/widgets/tabs/chat/gmtab.h"
#include "gui/widgets/tabs/chat/langtab.h"
#include "gui/widgets/tabs/chat/tradetab.h"
#include "gui/widgets/tabs/chat/whispertab.h"
@@ -1207,6 +1208,12 @@ ChatTab *ChatWindow::addSpecialChannelTab(const std::string &name,
}
ret = tradeChatTab;
}
+ else if (name == GM_CHANNEL)
+ {
+ if (!gmChatTab)
+ gmChatTab = new GmTab(chatWindow);
+ ret = gmChatTab;
+ }
if (switchTo)
mChatTabs->setSelectedTab(ret);