]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_tline.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / m_tline.cpp
index 0efd496c6207ce5a4d69556e14e086d5f061149c..e39064ca7e2c7db9894fe6648ed6eb59870a8067 100644 (file)
@@ -20,9 +20,9 @@
 class CommandTline : public Command
 {
  public:
-       CommandTline (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"TLINE", "o", 1)
+       CommandTline(Module* Creator) : Command(Creator,"TLINE", 1)
        {
-               this->syntax = "<mask>";
+               flags_needed = 'o'; this->syntax = "<mask>";
        }
 
        CmdResult Handle (const std::vector<std::string> &parameters, User *user)
@@ -55,7 +55,7 @@ class CommandTline : public Command
                else
                        user->WriteServ( "NOTICE %s :*** TLINE: Counted %0.0f user(s). Matched '%s' against no user(s).", user->nick.c_str(), n_counted, parameters[0].c_str());
 
-               return CMD_LOCALONLY;
+               return CMD_SUCCESS;
        }
 };
 
@@ -63,8 +63,8 @@ class ModuleTLine : public Module
 {
        CommandTline cmd;
  public:
-       ModuleTLine(InspIRCd* Me)
-               : Module(Me), cmd(Me, this)
+       ModuleTLine()
+               : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -76,7 +76,7 @@ class ModuleTLine : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR,API_VERSION);
+               return Version("Provides /tline command used to test who a mask matches", VF_VENDOR,API_VERSION);
        }
 };