summaryrefslogtreecommitdiff
path: root/src/net/guildhandler.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-07-22 13:47:35 +0000
committerDavid Athay <ko2fan@gmail.com>2008-07-22 13:47:35 +0000
commit19a3d8395772b65d0624d2413c2e7e8b845cdb7d (patch)
treece330de2bbbf871a6a8c19763862cc48b4c09741 /src/net/guildhandler.cpp
parent90b35878719aea081232adbb58fc906a3b3e0f79 (diff)
downloadmana-19a3d8395772b65d0624d2413c2e7e8b845cdb7d.tar.gz
mana-19a3d8395772b65d0624d2413c2e7e8b845cdb7d.tar.bz2
mana-19a3d8395772b65d0624d2413c2e7e8b845cdb7d.tar.xz
mana-19a3d8395772b65d0624d2413c2e7e8b845cdb7d.zip
Add permissions to guild members. Alt-Gr fix for Rotonen from 0.0
Diffstat (limited to 'src/net/guildhandler.cpp')
-rw-r--r--src/net/guildhandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/guildhandler.cpp b/src/net/guildhandler.cpp
index 151abe03..51393168 100644
--- a/src/net/guildhandler.cpp
+++ b/src/net/guildhandler.cpp
@@ -137,19 +137,19 @@ void GuildHandler::handleMessage(MessageIn &msg)
guild->addMember(guildMember);
guildWindow->setOnline(guild->getName(), guildMember, true);
break;
-
+
case GUILD_EVENT_LEAVING_PLAYER:
guild->removeMember(guildMember);
break;
-
+
case GUILD_EVENT_ONLINE_PLAYER:
guildWindow->setOnline(guild->getName(), guildMember, true);
break;
-
+
case GUILD_EVENT_OFFLINE_PLAYER:
guildWindow->setOnline(guild->getName(), guildMember, false);
break;
-
+
default:
logger->log("Invalid guild event");
}
@@ -201,12 +201,12 @@ void GuildHandler::joinedGuild(MessageIn &msg)
{
std::string guildName = msg.readString();
short guildId = msg.readInt16();
- bool leader = msg.readInt8();
+ short permissions = msg.readInt16();
short channelId = msg.readInt16();
std::string announcement = msg.readString();
// Add guild to player and create new guild tab
- Guild *guild = player_node->addGuild(guildId, leader);
+ Guild *guild = player_node->addGuild(guildId, permissions);
guild->setName(guildName);
guildWindow->newGuildTab(guildName);
guildWindow->requestMemberList(guildId);