summaryrefslogtreecommitdiff
path: root/src/chat-server
diff options
context:
space:
mode:
Diffstat (limited to 'src/chat-server')
-rw-r--r--src/chat-server/guildhandler.cpp12
1 files changed, 5 insertions, 7 deletions
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
{