summaryrefslogtreecommitdiff
path: root/src/guildmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-27 20:52:52 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-27 20:52:52 +0300
commiteb8269b40570333ce6a2787dd55f5081c73c14a7 (patch)
treec188726062675b4dcda0f27d1b57019a6a532949 /src/guildmanager.cpp
parent4f0c828135c37a176d97927e7e51b14dc84a719c (diff)
downloadmanaverse-eb8269b40570333ce6a2787dd55f5081c73c14a7.tar.gz
manaverse-eb8269b40570333ce6a2787dd55f5081c73c14a7.tar.bz2
manaverse-eb8269b40570333ce6a2787dd55f5081c73c14a7.tar.xz
manaverse-eb8269b40570333ce6a2787dd55f5081c73c14a7.zip
Fix guild reload if change nick on same account.
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);