]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_invisible.cpp
Strip SUPPORT_IP6LINKS #define
[user/henk/code/inspircd.git] / src / modules / m_invisible.cpp
index 965ff2635c2bdd72e0b7dac85eef7a0ed4a96c47..2e34b4f5d13b22dd83d25b7b74b86bda3084035d 100644 (file)
@@ -95,7 +95,7 @@ class InvisibleMode : public ModeHandler
                                }
                        }
 
-                       ServerInstance->SNO->WriteToSnoMask('A', "\2NOTICE\2: Oper %s has become %svisible (%cQ)", dest->GetFullHost().c_str(), adding ? "in" : "", adding ? '+' : '-');
+                       ServerInstance->SNO->WriteToSnoMask('a', "\2NOTICE\2: Oper %s has become %svisible (%cQ)", dest->GetFullHost().c_str(), adding ? "in" : "", adding ? '+' : '-');
                        return MODEACTION_ALLOW;
                }
                else
@@ -107,10 +107,8 @@ class InvisibleMode : public ModeHandler
 
 class InvisibleDeOper : public ModeWatcher
 {
- private:
-       InspIRCd* Srv;
  public:
-       InvisibleDeOper(InspIRCd* Instance) : ModeWatcher(Instance, 'o', MODETYPE_USER), Srv(Instance)
+       InvisibleDeOper(InspIRCd* Instance) : ModeWatcher(Instance, 'o', MODETYPE_USER)
        {
        }
 
@@ -163,7 +161,7 @@ class ModuleInvisible : public Module
 
        virtual Version GetVersion();
        virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent);
-       virtual void OnRehash(User* user, const std::string &parameter);
+       virtual void OnRehash(User* user);
        void OnUserPart(User* user, Channel* channel, std::string &partmessage, bool &silent);
        void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message);
        bool OnHostCycle(User* user);
@@ -186,11 +184,11 @@ void ModuleInvisible::OnUserJoin(User* user, Channel* channel, bool sync, bool &
                silent = true;
                /* Because we silenced the event, make sure it reaches the user whos joining (but only them of course) */
                this->WriteCommonFrom(user, channel, "JOIN %s", channel->name.c_str());
-               ServerInstance->SNO->WriteToSnoMask('A', "\2NOTICE\2: Oper %s has joined %s invisibly (+Q)", user->GetFullHost().c_str(), channel->name.c_str());
+               ServerInstance->SNO->WriteToSnoMask('a', "\2NOTICE\2: Oper %s has joined %s invisibly (+Q)", user->GetFullHost().c_str(), channel->name.c_str());
        }
 }
 
-void ModuleInvisible::OnRehash(User* user, const std::string &parameter)
+void ModuleInvisible::OnRehash(User* user)
 {
        delete conf;
        conf = new ConfigReader(ServerInstance);