From 6a15413158f5d61d65d84f0aac552ceb4cbdd404 Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 18 Dec 2008 18:43:58 +0000 Subject: Fix bug with removing players from guild --- src/chat-server/guildhandler.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/chat-server/guildhandler.cpp b/src/chat-server/guildhandler.cpp index d68746f7..8873988d 100644 --- a/src/chat-server/guildhandler.cpp +++ b/src/chat-server/guildhandler.cpp @@ -336,13 +336,11 @@ ChatHandler::handleGuildQuit(ChatClient &client, MessageIn &msg) { chatChannelManager->removeChannel(chatChannelManager->getChannelId(guild->getName())); } - else - { - // guild manager checks if the member is the last in the guild - // and removes the guild if so - guildManager->removeGuildMember(guild, client.characterId); - sendGuildListUpdate(guild->getName(), client.characterName, GUILD_EVENT_LEAVING_PLAYER); - } + + // guild manager checks if the member is the last in the guild + // and removes the guild if so + guildManager->removeGuildMember(guild, client.characterId); + sendGuildListUpdate(guild->getName(), client.characterName, GUILD_EVENT_LEAVING_PLAYER); } else { -- cgit v1.2.3-70-g09d2