#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 */
: Module::Module(Me)
{
- conf = new ConfigReader;
+ conf = new ConfigReader(ServerInstance);
operChan = conf->ReadValue("operjoin", "channel", 0);
}
virtual void OnRehash(const std::string ¶meter)
{
DELETE(conf);
- conf = new ConfigReader;
+ conf = new ConfigReader(ServerInstance);
}
virtual ~ModuleOperjoin()