summaryrefslogtreecommitdiff
path: root/src/guildmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guildmanager.cpp')
-rw-r--r--src/guildmanager.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp
index c929e8598..22b9de5a1 100644
--- a/src/guildmanager.cpp
+++ b/src/guildmanager.cpp
@@ -68,6 +68,24 @@ void GuildManager::init()
mEnableGuildBot = val;
}
+void GuildManager::reload()
+{
+ mGotInfo = false;
+ mGotName = false;
+ mHavePower = false;
+ mRequest = false;
+ mTempList.clear();
+
+ if (socialWindow)
+ {
+ Guild *guild = Guild::getGuild(1);
+ if (guild)
+ socialWindow->removeTab(guild);
+ }
+ delete mTab;
+ mTab = 0;
+}
+
void GuildManager::send(std::string msg)
{
Net::getChatHandler()->privateMessage("guild", msg);