X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_restrictchans.cpp;h=a901dfde6a4dd9c6816ea22c3b907ffa115ed175;hb=3a7023f2c595d14778b3f1f7e53d3914698dd500;hp=b6d34bf259f1616a54c57bf8fb90116c94cd514a;hpb=e2e581f0d3d5d844dc4b5210f566e5a5571a0570;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index b6d34bf25..a901dfde6 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -42,7 +42,7 @@ class ModuleRestrictChans : public Module irc::string channel = txt.c_str(); allowchans[channel] = 1; } - delete MyConf; + DELETE(MyConf); } public: @@ -53,7 +53,7 @@ class ModuleRestrictChans : public Module ReadConfig(); } - virtual void OnRehash(std::string parameter) + virtual void OnRehash(const std::string ¶meter) { ReadConfig(); }