summaryrefslogtreecommitdiff
path: root/src/net/chatserver/guild.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-08-13 15:28:07 +0000
committerDavid Athay <ko2fan@gmail.com>2008-08-13 15:28:07 +0000
commitb9d9ae443874efd4968a6efcf5ce050f213c497b (patch)
tree453d80d3e1d251efb60968c36023413cb4faf452 /src/net/chatserver/guild.cpp
parent47247ac4e2f0860a34106f4b69049d91003ced29 (diff)
downloadmana-b9d9ae443874efd4968a6efcf5ce050f213c497b.tar.gz
mana-b9d9ae443874efd4968a6efcf5ce050f213c497b.tar.bz2
mana-b9d9ae443874efd4968a6efcf5ce050f213c497b.tar.xz
mana-b9d9ae443874efd4968a6efcf5ce050f213c497b.zip
Added permission levels to guilds, and operator permissions to channels.
Diffstat (limited to 'src/net/chatserver/guild.cpp')
-rw-r--r--src/net/chatserver/guild.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/chatserver/guild.cpp b/src/net/chatserver/guild.cpp
index c1114065..fb400d5d 100644
--- a/src/net/chatserver/guild.cpp
+++ b/src/net/chatserver/guild.cpp
@@ -73,6 +73,19 @@ void Net::ChatServer::Guild::getGuildMembers(short guildId)
Net::ChatServer::connection->send(msg);
}
+void Net::ChatServer::Guild::promoteMember(const std::string &name,
+ short guildId, short level)
+{
+ logger->log("Sending PCMSG_GUILD_PROMOTE_MEMBER");
+ MessageOut msg(PCMSG_GUILD_PROMOTE_MEMBER);
+
+ msg.writeInt16(guildId);
+ msg.writeString(name);
+ msg.writeInt8(level);
+
+ Net::ChatServer::connection->send(msg);
+}
+
void Net::ChatServer::Guild::quitGuild(short guildId)
{
logger->log("Sending PCMSG_GUILD_QUIT");