]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermodes.cpp
m_spanningtree Replace manual string building of outgoing commands with CmdBuilder...
[user/henk/code/inspircd.git] / src / modules / m_opermodes.cpp
index 5752ff48d07f9a360de9267627842e1d4916cc7e..7ab54cedf15c014992be7b9c07ce05fbbc6a8e2f 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->Modes->Process(modes, u);
        }
 };