summaryrefslogtreecommitdiff
path: root/src/net/chatserver/chatserver.cpp
diff options
context:
space:
mode:
authorRoderic Morris <roderic@ccs.neu.edu>2008-06-25 21:12:44 +0000
committerRoderic Morris <roderic@ccs.neu.edu>2008-06-25 21:12:44 +0000
commita34a4692200eaf5b3ec8a7de75699a46aefd8b98 (patch)
treed73f15d55e7f784e99d92672f9ccbe69d64d7e69 /src/net/chatserver/chatserver.cpp
parenta0b6e09737b7b416a38c08d8e1d6744a4cc12f7d (diff)
downloadMana-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.cpp14
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);
+}