diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/chathandler.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index cff13879f..b10224c4a 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -184,6 +184,12 @@ void ChatHandler::privateMessage(const std::string &restrict recipient, mSentWhispers.push(recipient); } +void ChatHandler::channelMessage(const std::string &restrict channel, + const std::string &restrict text) +{ + privateMessage(channel, text); +} + void ChatHandler::who() const { createOutPacket(CMSG_WHO_REQUEST); diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h index 77484c946..82abae9a1 100644 --- a/src/net/eathena/chathandler.h +++ b/src/net/eathena/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 override final; |