From 29c0c9e731694a40a6f2e41c6bdedb4b78e2b952 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Mar 2013 02:10:02 +0300 Subject: Add new notifications to guildhandler, guildmanager, inventoryhandler and partyhandler. --- src/guildmanager.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/guildmanager.cpp') diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp index 180758cf7..7e096a276 100644 --- a/src/guildmanager.cpp +++ b/src/guildmanager.cpp @@ -25,6 +25,7 @@ #include "configuration.h" #include "guild.h" #include "localplayer.h" +#include "notifymanager.h" #include "gui/socialwindow.h" @@ -508,7 +509,7 @@ bool GuildManager::afterRemove() player_node->setGuildName(""); player_node->clearGuilds(); } - SERVER_NOTICE(_("You have left the guild.")) + NotifyManager::notify(NotifyManager::GUILD_LEFT); delete mTab; mTab = nullptr; @@ -522,3 +523,8 @@ bool GuildManager::afterRemove() reload(); return true; } + +ChatTab *GuildManager::getTab() +{ + return mTab; +} -- cgit v1.2.3-70-g09d2