]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chghost.cpp
To be more specific, specify rpath() macro here
[user/henk/code/inspircd.git] / src / modules / m_chghost.cpp
index e0f69faba5e1ccb5218185a9daf84db930409be6..d4047ad4828a0c3807cb589660e12d4aadf6b5ce 100644 (file)
@@ -75,7 +75,7 @@ class ModuleChgHost : public Module
        ModuleChgHost(InspIRCd* Me)
                : Module::Module(Me)
        {
-               OnRehash("");
+               OnRehash(NULL,"");
                mycommand = new cmd_chghost(ServerInstance, hostmap);
                ServerInstance->AddCommand(mycommand);
        }
@@ -85,7 +85,7 @@ class ModuleChgHost : public Module
                List[I_OnRehash] = 1;
        }
        
-       void OnRehash(const std::string &parameter)
+       void OnRehash(userrec* user, const std::string &parameter)
        {
                ConfigReader Conf(ServerInstance);
                std::string hmap = Conf.ReadValue("hostname", "charmap", 0);
@@ -100,7 +100,6 @@ class ModuleChgHost : public Module
 
        ~ModuleChgHost()
        {
-               delete[] hostmap;
        }
        
        Version GetVersion()