summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-13 01:39:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-13 01:39:00 +0300
commit9ee88d0b1068599f60710a13551257f044722a9d (patch)
tree71901ea8a5be8d26313b51bfcdb944b80dbe020e /src/net/eathena/chathandler.cpp
parentd431a16b6e75232b664a67741898aa8179057c00 (diff)
downloadmanaverse-9ee88d0b1068599f60710a13551257f044722a9d.tar.gz
manaverse-9ee88d0b1068599f60710a13551257f044722a9d.tar.bz2
manaverse-9ee88d0b1068599f60710a13551257f044722a9d.tar.xz
manaverse-9ee88d0b1068599f60710a13551257f044722a9d.zip
In chatHandler add function to join channel.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index b10224c4a..ac626fd71 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -517,4 +517,11 @@ void ChatHandler::processChatLeave(Net::MessageIn &msg)
msg.readUInt8("flag"); // 0 - left, 1 - kicked
}
+void ChatHandler::joinChannel(const std::string &channel)
+{
+ // to join channel need use gm commands or send something.
+ // here we sending invisible message.
+ channelMessage(channel, "\302\202G");
+}
+
} // namespace EAthena