diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-30 01:57:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-30 02:32:13 +0300 |
commit | 9f752d5431364c052b364045015d3574da2c320c (patch) | |
tree | 9278797f892129e42fde74656db032dc480c4490 /src/guildmanager.h | |
parent | 8158669fde4f4a32191d6b052586e7cf0889ab7e (diff) | |
download | manaplus-9f752d5431364c052b364045015d3574da2c320c.tar.gz manaplus-9f752d5431364c052b364045015d3574da2c320c.tar.bz2 manaplus-9f752d5431364c052b364045015d3574da2c320c.tar.xz manaplus-9f752d5431364c052b364045015d3574da2c320c.zip |
Dont create guild manager instance if guild bot support not enabled.
Diffstat (limited to 'src/guildmanager.h')
-rw-r--r-- | src/guildmanager.h | 6 |
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; |