]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_invisible.cpp
Fix access checks on chanprotect preventing use of SAMODE
[user/henk/code/inspircd.git] / src / modules / m_invisible.cpp
index cbdfcc600da266442cfafa25fb10b561833ea9df..068e6d666b905c246748029bb26cf639155faf5f 100644 (file)
@@ -1,5 +1,5 @@
 /*       +------------------------------------+
- *       | Inspire Internet Relay Chat Daemon |
+ *       | Inspire Internet Relay Chat Daemon
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
@@ -19,8 +19,9 @@
 class InvisibleMode : public ModeHandler
 {
  public:
-       InvisibleMode(InspIRCd* Instance, Module* Creator) : ModeHandler(Instance, Creator, 'Q', 0, 0, false, MODETYPE_USER, true)
+       InvisibleMode(InspIRCd* Instance, Module* Creator) : ModeHandler(Creator, 'Q', PARAM_NONE, MODETYPE_USER)
        {
+               oper = true;
        }
 
        ~InvisibleMode()
@@ -52,7 +53,7 @@ class InvisibleMode : public ModeHandler
 
                                snprintf(tb,MAXBUF,":%s %s %s", dest->GetFullHost().c_str(), adding ? "PART" : "JOIN", (*f)->name.c_str());
                                std::string out = tb;
-                               std::string n = this->ServerInstance->Modes->ModeString(dest, (*f));
+                               std::string n = ServerInstance->Modes->ModeString(dest, (*f));
 
                                for (UserMembCIter i = ulist->begin(); i != ulist->end(); i++)
                                {