]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hideoper.cpp
Always deny invite to users below halfop status, move OnUserPreInvite up to above...
[user/henk/code/inspircd.git] / src / modules / m_hideoper.cpp
index 9586ca0b4ba7ff772cf0412bf49d4675e3ed3eff..97cb53c763b6294c390fc910c9fbfd82db80286d 100644 (file)
@@ -15,7 +15,7 @@
 
 /* $ModDesc: Provides support for hiding oper status with user mode +H */
 
-/** Handles user mode +B
+/** Handles user mode +H
  */
 class HideOper : public ModeHandler
 {
@@ -40,20 +40,20 @@ class HideOper : public ModeHandler
                                return MODEACTION_ALLOW;
                        }
                }
-               
+
                return MODEACTION_DENY;
        }
 };
 
 class ModuleHideOper : public Module
 {
-       
+
        HideOper* hm;
  public:
        ModuleHideOper(InspIRCd* Me)
                : Module(Me)
        {
-               
+
                hm = new HideOper(ServerInstance);
                if (!ServerInstance->Modes->AddMode(hm))
                        throw ModuleException("Could not add new modes!");
@@ -61,16 +61,16 @@ class ModuleHideOper : public Module
                ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
-       
+
        virtual ~ModuleHideOper()
        {
                ServerInstance->Modes->DelMode(hm);
                delete hm;
        }
-       
+
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
        }
 
        int OnWhoisLine(User* user, User* dest, int &numeric, std::string &text)