summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 111ce4642..72b547c2a 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -2149,6 +2149,16 @@ void ChatWindow::debugMessage(const std::string &msg)
debugChatTab->chatLog(msg, ChatMsgType::BY_SERVER);
}
+void ChatWindow::showGMTab()
+{
+ if (!gmChatTab &&
+ config.getBoolValue("enableGmTab") &&
+ localPlayer->getGMLevel() >= paths.getIntValue("gmTabMinimalLevel"))
+ {
+ addSpecialChannelTab(GM_CHANNEL, false);
+ }
+}
+
#ifdef EATHENA_SUPPORT
void ChatWindow::joinRoom(const bool isJoin)
{