]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_saquit.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / m_saquit.cpp
index cbd7dfc77847311bc45ee4747b7468a2e4c5ba4b..0d181aa65c68c2f43a4675aca8e94b3d750bb888 100644 (file)
@@ -20,9 +20,9 @@
 class CommandSaquit : public Command
 {
  public:
-       CommandSaquit (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator, "SAQUIT", "o", 2, 2, false, 0)
+       CommandSaquit(Module* Creator) : Command(Creator, "SAQUIT", 2, 2)
        {
-               syntax = "<nick> <reason>";
+               flags_needed = 'o'; Penalty = 0; syntax = "<nick> <reason>";
                TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
        }
 
@@ -66,8 +66,8 @@ class ModuleSaquit : public Module
 {
        CommandSaquit cmd;
  public:
-       ModuleSaquit(InspIRCd* Me)
-               : Module(Me), cmd(Me, this)
+       ModuleSaquit()
+               : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -78,7 +78,7 @@ class ModuleSaquit : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
+               return Version("Provides support for an SAQUIT command, exits user with a reason", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
        }
 
 };