]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hidechans.cpp
Get rid of a bunch of memory-wasting C-style strings
[user/henk/code/inspircd.git] / src / modules / m_hidechans.cpp
index 6c3dba88ff5ac3d1edd1db3c33dd7a779d0b001a..0d405186b0e60e18aca512c7bbf1e9471c6b4c54 100644 (file)
@@ -20,7 +20,7 @@
 class HideChans : public ModeHandler
 {
  public:
-       HideChans(InspIRCd* Instance, Module* Creator) : ModeHandler(Creator, 'I', PARAM_NONE, MODETYPE_USER) { }
+       HideChans(Module* Creator) : ModeHandler(Creator, 'I', PARAM_NONE, MODETYPE_USER) { }
 
        ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
        {
@@ -50,7 +50,7 @@ class ModuleHideChans : public Module
        bool AffectsOpers;
        HideChans hm;
  public:
-       ModuleHideChans(InspIRCd* Me) : Module(Me), hm(Me, this)
+       ModuleHideChans() : hm(this)
        {
                if (!ServerInstance->Modes->AddMode(&hm))
                        throw ModuleException("Could not add new modes!");
@@ -71,7 +71,7 @@ class ModuleHideChans : public Module
 
        virtual void OnRehash(User* user)
        {
-               ConfigReader conf(ServerInstance);
+               ConfigReader conf;
                AffectsOpers = conf.ReadFlag("hidechans", "affectsopers", 0);
        }