summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-04 15:45:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-04 15:45:30 +0300
commit6f06cd42b8e56aaae2be853a31d73d0115a39c2a (patch)
tree589d5d51b66018b6063bf954f90b96a3244b2e3d /src/gui/windows
parent13b4a16c46983b786d31f6cf67632a3bd4e14b8f (diff)
downloadmanaverse-6f06cd42b8e56aaae2be853a31d73d0115a39c2a.tar.gz
manaverse-6f06cd42b8e56aaae2be853a31d73d0115a39c2a.tar.bz2
manaverse-6f06cd42b8e56aaae2be853a31d73d0115a39c2a.tar.xz
manaverse-6f06cd42b8e56aaae2be853a31d73d0115a39c2a.zip
Add chat command for create chat room (incomplete).
New chat command: /chatroom NAME
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.cpp6
-rw-r--r--src/gui/windows/chatwindow.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 748114b10..2c1f580ad 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1219,6 +1219,12 @@ ChatTab *ChatWindow::addSpecialChannelTab(const std::string &name,
return ret;
}
+ChatTab *ChatWindow::addChatRoomTab(const std::string &name,
+ const bool switchTo)
+{
+ return nullptr;
+}
+
ChatTab *ChatWindow::addChannelTab(const std::string &name,
const bool switchTo)
{
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index 3bbb40e5e..33d6a89bd 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -199,6 +199,9 @@ class ChatWindow final : public Window,
WhisperTab *getWhisperTab(const std::string &nick) const A_WARN_UNUSED;
+ ChatTab *addChatRoomTab(const std::string &name,
+ const bool switchTo = false);
+
ChatTab *addChannelTab(const std::string &name,
const bool switchTo = false);