summaryrefslogtreecommitdiff
path: root/src/guildmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-30 01:57:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-30 02:32:13 +0300
commit9f752d5431364c052b364045015d3574da2c320c (patch)
tree9278797f892129e42fde74656db032dc480c4490 /src/guildmanager.h
parent8158669fde4f4a32191d6b052586e7cf0889ab7e (diff)
downloadmv-9f752d5431364c052b364045015d3574da2c320c.tar.gz
mv-9f752d5431364c052b364045015d3574da2c320c.tar.bz2
mv-9f752d5431364c052b364045015d3574da2c320c.tar.xz
mv-9f752d5431364c052b364045015d3574da2c320c.zip
Dont create guild manager instance if guild bot support not enabled.
Diffstat (limited to 'src/guildmanager.h')
-rw-r--r--src/guildmanager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/guildmanager.h b/src/guildmanager.h
index d0ee7fb62..80014e352 100644
--- a/src/guildmanager.h
+++ b/src/guildmanager.h
@@ -37,7 +37,7 @@ class GuildManager
~GuildManager();
- void init();
+ static void init();
void chat(std::string msg);
@@ -51,7 +51,7 @@ class GuildManager
void updateList();
- bool getEnableGuildBot()
+ static bool getEnableGuildBot()
{ return mEnableGuildBot; }
void kick(std::string msg);
@@ -80,7 +80,7 @@ class GuildManager
private:
bool process(std::string msg);
- bool mEnableGuildBot;
+ static bool mEnableGuildBot;
bool mGotInfo;
bool mGotName;
bool mHavePower;