]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermodes.cpp
Run configure -update on all svn/git changes
[user/henk/code/inspircd.git] / src / modules / m_opermodes.cpp
index 2e947809ac979ba0090a365030dce80a2cf663a6..5b78e431b5866a09e8fd6a5c79544ce0b7e28496 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -33,7 +33,7 @@ class ModuleModesOnOper : public Module
        }
 
 
-       virtual void OnRehash(User* user, const std::string &parameter)
+       virtual void OnRehash(User* user)
        {
                delete Conf;
                Conf = new ConfigReader(ServerInstance);
@@ -46,7 +46,7 @@ class ModuleModesOnOper : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("Sets (and unsets) modes on opers when they oper up", VF_VENDOR, API_VERSION);
        }
 
        virtual void OnPostOper(User* user, const std::string &opertype, const std::string &opername)
@@ -108,12 +108,8 @@ class ModuleModesOnOper : public Module
                        modes.push_back(tokens[k]);
                }
 
-               std::deque<std::string> n;
-               for (unsigned int j = 1; j < tokens.size(); j++)
-                       n.push_back(modes[j]);
-
-               ServerInstance->PI->SendMode(u->uuid, n);
                ServerInstance->SendMode(modes, u);
+               ServerInstance->PI->SendMode(u->uuid, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
        }
 };