void ReadConfig()
{
- ConfigReader* MyConf = new ConfigReader(ServerInstance);
+ ConfigReader* MyConf = new ConfigReader;
allowchans.clear();
for (int i = 0; i < MyConf->Enumerate("allowchannel"); i++)
{
}
public:
- ModuleRestrictChans(InspIRCd* Me)
- : Module(Me)
- {
+ ModuleRestrictChans()
+ {
ReadConfig();
Implementation eventlist[] = { I_OnUserPreJoin, I_OnRehash };
virtual Version GetVersion()
{
- return Version("$Id$",VF_VENDOR,API_VERSION);
+ return Version("Only opers may create new channels if this module is loaded",VF_VENDOR,API_VERSION);
}
};