diff options
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); +} |