]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operjoin.cpp
Annotations
[user/henk/code/inspircd.git] / src / modules / m_operjoin.cpp
index dc8e1081a6e00da463933042d310b196c6ac2223..67512815d356a0ef8ddfef8ecfada63c567a8979 100644 (file)
@@ -5,7 +5,7 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "helperfuncs.h"
+
 #include "inspircd.h"
 
 /* $ModDesc: Forces opers to join the specified channel(s) on oper-up */
@@ -43,7 +43,7 @@ class ModuleOperjoin : public Module
                        : Module::Module(Me)
                {
                        
-                       conf = new ConfigReader;
+                       conf = new ConfigReader(ServerInstance);
                        operChan = conf->ReadValue("operjoin", "channel", 0);
                }
 
@@ -55,7 +55,7 @@ class ModuleOperjoin : public Module
                virtual void OnRehash(const std::string &parameter)
                {
                        DELETE(conf);
-                       conf = new ConfigReader;
+                       conf = new ConfigReader(ServerInstance);
                }
 
                virtual ~ModuleOperjoin()