diff options
author | Roderic Morris <roderic@ccs.neu.edu> | 2008-06-25 21:12:44 +0000 |
---|---|---|
committer | Roderic Morris <roderic@ccs.neu.edu> | 2008-06-25 21:12:44 +0000 |
commit | a34a4692200eaf5b3ec8a7de75699a46aefd8b98 (patch) | |
tree | d73f15d55e7f784e99d92672f9ccbe69d64d7e69 /src/net/chatserver/chatserver.cpp | |
parent | a0b6e09737b7b416a38c08d8e1d6744a4cc12f7d (diff) | |
download | Mana-a34a4692200eaf5b3ec8a7de75699a46aefd8b98.tar.gz Mana-a34a4692200eaf5b3ec8a7de75699a46aefd8b98.tar.bz2 Mana-a34a4692200eaf5b3ec8a7de75699a46aefd8b98.tar.xz Mana-a34a4692200eaf5b3ec8a7de75699a46aefd8b98.zip |
handle topic changes and guild events
Diffstat (limited to 'src/net/chatserver/chatserver.cpp')
-rw-r--r-- | src/net/chatserver/chatserver.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/net/chatserver/chatserver.cpp b/src/net/chatserver/chatserver.cpp index fbf7355f..c6df7c83 100644 --- a/src/net/chatserver/chatserver.cpp +++ b/src/net/chatserver/chatserver.cpp @@ -81,11 +81,11 @@ void Net::ChatServer::privMsg(const std::string &recipient, } void Net::ChatServer::registerChannel(const std::string &name, - const std::string &announcement, const std::string &password) + const std::string &topic, const std::string &password) { MessageOut msg(PCMSG_REGISTER_CHANNEL); msg.writeString(name); - msg.writeString(announcement); + msg.writeString(topic); msg.writeString(password); connection->send(msg); @@ -125,3 +125,13 @@ void Net::ChatServer::getUserList(const std::string &channel) connection->send(msg); } + +void Net::ChatServer::setChannelTopic(short channel, const std::string &topic) +{ + MessageOut msg(PCMSG_TOPIC_CHANGE); + + msg.writeInt16(channel); + msg.writeString(topic); + + connection->send(msg); +} |