]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanprotect.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / m_chanprotect.cpp
index 4d046b41597f537acae63d39849d6062b6c1eae8..12b5c1db421ca22cef5293ef98d05941ba48afd3 100644 (file)
@@ -67,7 +67,7 @@ class FounderProtectBase
                const UserMembList* cl = channel->GetUsers();
                std::vector<std::string> mode_junk;
                mode_junk.push_back(channel->name);
-               irc::modestacker modestack(ServerInstance, false);
+               irc::modestacker modestack(false);
                std::deque<std::string> stackresult;
 
                for (UserMembCIter i = cl->begin(); i != cl->end(); i++)
@@ -266,8 +266,8 @@ class ModuleChanProtect : public Module
 
  public:
 
-       ModuleChanProtect(InspIRCd* Me)
-               : Module(Me), FirstInGetsFounder(false), QPrefix(0), APrefix(0), DeprivSelf(false), DeprivOthers(false), booting(true), cp(NULL), cf(NULL)
+       ModuleChanProtect()
+               : FirstInGetsFounder(false), QPrefix(0), APrefix(0), DeprivSelf(false), DeprivOthers(false), booting(true), cp(NULL), cf(NULL)
        {
                /* Load config stuff */
                LoadSettings();
@@ -291,7 +291,7 @@ class ModuleChanProtect : public Module
 
        void LoadSettings()
        {
-               ConfigReader Conf(ServerInstance);
+               ConfigReader Conf;
 
                FirstInGetsFounder = Conf.ReadFlag("chanprotect", "noservices", 0);