X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_operjoin.cpp;h=67512815d356a0ef8ddfef8ecfada63c567a8979;hb=3a7dd5b129450b94e0a87b8ad5009da70905b8e5;hp=aa4e777729f596ce1c94fa657a1718bb2d13e21f;hpb=d0b4bb3811458aa335857514e4cbb95d5c84f433;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index aa4e77772..67512815d 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -5,12 +5,12 @@ 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 */ -extern InspIRCd* ServerInstance; + class ModuleOperjoin : public Module { @@ -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 ¶meter) { DELETE(conf); - conf = new ConfigReader; + conf = new ConfigReader(ServerInstance); } virtual ~ModuleOperjoin()