* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
class CommandTline : public Command
{
public:
- CommandTline (InspIRCd* Instance) : Command(Instance,"TLINE", "o", 1)
+ CommandTline(Module* Creator) : Command(Creator,"TLINE", 1)
{
- this->source = "m_tline.so";
- this->syntax = "<mask>";
+ flags_needed = 'o'; this->syntax = "<mask>";
}
CmdResult Handle (const std::vector<std::string> ¶meters, User *user)
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;
}
};
class ModuleTLine : public Module
{
- CommandTline* newcommand;
+ CommandTline cmd;
public:
- ModuleTLine(InspIRCd* Me)
- : Module(Me)
+ ModuleTLine()
+ : cmd(this)
{
-
- newcommand = new CommandTline(ServerInstance);
- ServerInstance->AddCommand(newcommand);
-
+ ServerInstance->AddCommand(&cmd);
}
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);
}
};