]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermodes.cpp
Remove UserManager::GarbageCollect()
[user/henk/code/inspircd.git] / src / modules / m_opermodes.cpp
index 5752ff48d07f9a360de9267627842e1d4916cc7e..33ebb57a04c37dee58af5306916585f4abe891e3 100644 (file)
 
 #include "inspircd.h"
 
-/* $ModDesc: Sets (and unsets) modes on opers when they oper up */
-
 class ModuleModesOnOper : public Module
 {
  public:
-       void init() CXX11_OVERRIDE
-       {
-               ServerInstance->Modules->Attach(I_OnPostOper, this);
-       }
-
        Version GetVersion() CXX11_OVERRIDE
        {
                return Version("Sets (and unsets) modes on opers when they oper up", VF_VENDOR);
@@ -67,7 +60,7 @@ class ModuleModesOnOper : public Module
                while (ss >> buf)
                        modes.push_back(buf);
 
-               ServerInstance->SendMode(modes, u);
+               ServerInstance->Parser.CallHandler("MODE", modes, u);
        }
 };