#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()
virtual Version GetVersion()
{
- return Version(1,0,0,1,VF_VENDOR);
+ return Version(1,1,0,1,VF_VENDOR,API_VERSION);
}
virtual void OnPostOper(userrec* user, const std::string &opertype)