X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_restrictchans.cpp;h=bc66afce5577bd14bb714662ada1484f0aa05849;hb=de25d946733f774e3a5b53a58438a9c92af0acbe;hp=68aa455e7bdcbf84420d4536b204d8a27e429f94;hpb=86775e2e98f55b3b88befe2daff0ca23f02f3155;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index 68aa455e7..bc66afce5 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -23,7 +23,7 @@ class ModuleRestrictChans : public Module void ReadConfig() { - ConfigReader* MyConf = new ConfigReader(ServerInstance); + ConfigReader* MyConf = new ConfigReader; allowchans.clear(); for (int i = 0; i < MyConf->Enumerate("allowchannel"); i++) { @@ -36,9 +36,8 @@ class ModuleRestrictChans : public Module } public: - ModuleRestrictChans(InspIRCd* Me) - : Module(Me) - { + ModuleRestrictChans() + { ReadConfig(); Implementation eventlist[] = { I_OnUserPreJoin, I_OnRehash }; @@ -76,7 +75,7 @@ class ModuleRestrictChans : public Module 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); } };