]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hostchange.cpp
Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists
[user/henk/code/inspircd.git] / src / modules / m_hostchange.cpp
index 1a5986fc27e49dee83582b6a87bd39fe898f4076..d270c74d456d021aa9c25f0207a3f08144c3d940 100644 (file)
@@ -24,7 +24,7 @@ using namespace std;
 
 /* $ModDesc: Provides masking of user hostnames in a different way to m_cloaking */
 
-extern InspIRCd* ServerInstance;
+
 
 class Host : public classbase
 {
@@ -49,7 +49,7 @@ class ModuleHostChange : public Module
                : Module::Module(Me)
        {
                
-               Conf = new ConfigReader;
+               Conf = new ConfigReader(ServerInstance);
                OnRehash("");
        }
        
@@ -71,7 +71,7 @@ class ModuleHostChange : public Module
        virtual void OnRehash(const std::string &parameter)
        {
                DELETE(Conf);
-               Conf = new ConfigReader;
+               Conf = new ConfigReader(ServerInstance);
                MySuffix = Conf->ReadValue("host","suffix",0);
                for (hostchanges_t::iterator i = hostchanges.begin(); i != hostchanges.end(); i++)
                {