]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hostchange.cpp
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on...
[user/henk/code/inspircd.git] / src / modules / m_hostchange.cpp
index 74c58b22aaebc297f7befc00e40ac042f708d9fd..d0e44b3940e59e1f9c03945a49da9a0fcc3f1820 100644 (file)
@@ -51,12 +51,7 @@ class ModuleHostChange : public Module
        std::string MySeparator;
 
  public:
-       void init() CXX11_OVERRIDE
-       {
-               OnRehash(NULL);
-       }
-
-       void OnRehash(User* user) CXX11_OVERRIDE
+       void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                ConfigTag* host = ServerInstance->Config->ConfValue("host");
                MySuffix = host->getString("suffix");