From 6f06cd42b8e56aaae2be853a31d73d0115a39c2a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Apr 2015 15:45:30 +0300 Subject: Add chat command for create chat room (incomplete). New chat command: /chatroom NAME --- src/gui/windows/chatwindow.cpp | 6 ++++++ src/gui/windows/chatwindow.h | 3 +++ 2 files changed, 9 insertions(+) (limited to 'src/gui/windows') 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); -- cgit v1.2.3-70-g09d2