summaryrefslogtreecommitdiff
path: root/src/net/guildhandler.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/guildhandler.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/guildhandler.cpp')
-rw-r--r--src/net/guildhandler.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/net/guildhandler.cpp b/src/net/guildhandler.cpp
index 51393168..f6677cd8 100644
--- a/src/net/guildhandler.cpp
+++ b/src/net/guildhandler.cpp
@@ -65,8 +65,13 @@ void GuildHandler::handleMessage(MessageIn &msg)
if(msg.readInt8() == ERRMSG_OK)
{
// TODO - Acknowledge guild was created
+ chatWindow->chatLog("Guild created.");
joinedGuild(msg);
}
+ else
+ {
+ chatWindow->chatLog("Error creating guild.");
+ }
} break;
case CPMSG_GUILD_INVITE_RESPONSE:
@@ -75,6 +80,7 @@ void GuildHandler::handleMessage(MessageIn &msg)
if(msg.readInt8() == ERRMSG_OK)
{
// TODO - Acknowledge invite was sent
+ chatWindow->chatLog("Invite sent.");
}
} break;
@@ -169,6 +175,22 @@ void GuildHandler::handleMessage(MessageIn &msg)
guildWindow->openAcceptDialog(inviterName, guildName);
} break;
+ case CPMSG_GUILD_PROMOTE_MEMBER_RESPONSE:
+ {
+ logger->log("Received CPMSG_GUILD_PROMOTE_MEMBER_RESPONSE");
+
+ if (msg.readInt8() == ERRMSG_OK)
+ {
+ // promotion succeeded
+ chatWindow->chatLog("Member was promoted successfully");
+ }
+ else
+ {
+ // promotion failed
+ chatWindow->chatLog("Failed to promote member");
+ }
+ }
+
case CPMSG_GUILD_REJOIN:
{
logger->log("Received CPMSG_GUILD_REJOIN");