* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- * E-mail:
- * <brain@chatspike.net>
- * <Craig@chatspike.net>
+ * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
*
- * Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
- * the file COPYING for details.
+ * the file COPYING for details.
*
* ---------------------------------------------------
*/
#include "xline.h"
#include "commands/cmd_eline.h"
-
-
extern "C" command_t* init_command(InspIRCd* Instance)
{
return new cmd_eline(Instance);
}
-void cmd_eline::Handle (const char** parameters, int pcnt, userrec *user)
+/** Handle /ELINE
+ */
+CmdResult cmd_eline::Handle (const char** parameters, int pcnt, userrec *user)
{
if (pcnt >= 3)
{
if (ServerInstance->HostMatchesEveryone(parameters[0],user))
- return;
+ return CMD_FAILURE;
if (!strchr(parameters[0],'@'))
{
user->WriteServ("NOTICE %s :*** E-Line must contain a username, e.g. *@%s",user->nick,parameters[0]);
- return;
+ return CMD_FAILURE;
}
ServerInstance->XLines->add_eline(ServerInstance->Duration(parameters[1]),user->nick,parameters[2],parameters[0]);
}
}
- // no need to apply the lines for an eline
+ return CMD_SUCCESS;
}