From d431a16b6e75232b664a67741898aa8179057c00 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 Oct 2014 00:19:04 +0300 Subject: Add special method in charHandler to send message to channel. --- src/net/eathena/chathandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/eathena/chathandler.cpp') 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); -- cgit v1.2.3-60-g2f50