]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_satopic.cpp
Mark +P mode as oper-only now that it no longer requires an explicit permission string
[user/henk/code/inspircd.git] / src / modules / m_satopic.cpp
index 542e8f30d73478aabe9601ad137be5ab0dc3efc7..16a207cae048c5f029e4c799cb97d513771efba7 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
 class CommandSATopic : public Command
 {
  public:
-       CommandSATopic (InspIRCd* Instance, Module* Creator)
-               : Command(Instance,Creator,"SATOPIC", "o", 2, 2, false, 0)
+       CommandSATopic(Module* Creator) : Command(Creator,"SATOPIC", 2, 2)
        {
-               syntax = "<target> <topic>";
+               flags_needed = 'o'; Penalty = 0; syntax = "<target> <topic>";
        }
 
        CmdResult Handle (const std::vector<std::string>& parameters, User *user)
@@ -56,8 +55,8 @@ class ModuleSATopic : public Module
 {
        CommandSATopic cmd;
  public:
-       ModuleSATopic(InspIRCd* Me)
-       : Module(Me), cmd(Me, this)
+       ModuleSATopic()
+       : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -68,7 +67,7 @@ class ModuleSATopic : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("Provides a SATOPIC command", VF_VENDOR);
        }
 };