summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-13 00:19:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-13 00:19:04 +0300
commitd431a16b6e75232b664a67741898aa8179057c00 (patch)
tree92586a82f3d891227c3255ba37fe74e39394a516 /src/net/tmwa
parentc37ae6c52273c01f634a0635c5255319f385e7fb (diff)
downloadplus-d431a16b6e75232b664a67741898aa8179057c00.tar.gz
plus-d431a16b6e75232b664a67741898aa8179057c00.tar.bz2
plus-d431a16b6e75232b664a67741898aa8179057c00.tar.xz
plus-d431a16b6e75232b664a67741898aa8179057c00.zip
Add special method in charHandler to send message to channel.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/chathandler.cpp5
-rw-r--r--src/net/tmwa/chathandler.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index 051443318..68ceb0d8d 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -163,6 +163,11 @@ void ChatHandler::privateMessage(const std::string &restrict recipient,
mSentWhispers.push(recipient);
}
+void ChatHandler::channelMessage(const std::string &restrict channel A_UNUSED,
+ const std::string &restrict text A_UNUSED)
+{
+}
+
void ChatHandler::who() const
{
createOutPacket(CMSG_WHO_REQUEST);
diff --git a/src/net/tmwa/chathandler.h b/src/net/tmwa/chathandler.h
index 15777c1e3..fff0432fe 100644
--- a/src/net/tmwa/chathandler.h
+++ b/src/net/tmwa/chathandler.h
@@ -48,6 +48,9 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
void privateMessage(const std::string &restrict recipient,
const std::string &restrict text) override final;
+ void channelMessage(const std::string &restrict channel,
+ const std::string &restrict text) override final;
+
void who() const override final;
void sendRaw(const std::string &args) const;