]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hideoper.cpp
Fix iteration of oper blocks by SSLINFO
[user/henk/code/inspircd.git] / src / modules / m_hideoper.cpp
index 54207db557df02e37aaf97650086330d691928c8..18db0320c1865a512b87cc4d24b7641bcb6f197a 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -55,11 +55,10 @@ class ModuleHideOper : public Module
        ModuleHideOper()
                : hm(this)
        {
-
                if (!ServerInstance->Modes->AddMode(&hm))
                        throw ModuleException("Could not add new modes!");
-               Implementation eventlist[] = { I_OnWhoisLine };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+               Implementation eventlist[] = { I_OnWhoisLine, I_OnSendWhoLine };
+               ServerInstance->Modules->Attach(eventlist, this, 2);
        }
 
 
@@ -69,7 +68,7 @@ class ModuleHideOper : public Module
 
        virtual Version GetVersion()
        {
-               return Version("Provides support for hiding oper status with user mode +H", VF_COMMON | VF_VENDOR);
+               return Version("Provides support for hiding oper status with user mode +H", VF_VENDOR);
        }
 
        ModResult OnWhoisLine(User* user, User* dest, int &numeric, std::string &text)