From dcfd227ffbfb11833663c1f96490d41537b4f496 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 25 Oct 2008 16:41:13 +0000 Subject: Fix a number of commands to have max_params field. This means in practice, that colons on gline reasons (etc) are no longer mandatory, provided the command tells the core how many parameters at max it has. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10718 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/commands/cmd_eline.h | 2 +- include/commands/cmd_kline.h | 2 +- include/commands/cmd_qline.h | 2 +- include/commands/cmd_wallops.h | 2 +- include/commands/cmd_zline.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include/commands') diff --git a/include/commands/cmd_eline.h b/include/commands/cmd_eline.h index 2d5a2130c..ee724b65f 100644 --- a/include/commands/cmd_eline.h +++ b/include/commands/cmd_eline.h @@ -29,7 +29,7 @@ class CommandEline : public Command public: /** Constructor for eline. */ - CommandEline (InspIRCd* Instance) : Command(Instance,"ELINE","o",1,false,0) { syntax = " [ :]"; } + CommandEline (InspIRCd* Instance) : Command(Instance,"ELINE","o",1,3,false,0) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_kline.h b/include/commands/cmd_kline.h index 98ac098de..36292d514 100644 --- a/include/commands/cmd_kline.h +++ b/include/commands/cmd_kline.h @@ -29,7 +29,7 @@ class CommandKline : public Command public: /** Constructor for kline. */ - CommandKline (InspIRCd* Instance) : Command(Instance,"KLINE","o",1,false,0) { syntax = " [ :]"; } + CommandKline (InspIRCd* Instance) : Command(Instance,"KLINE","o",1,3,false,0) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_qline.h b/include/commands/cmd_qline.h index de70bb78b..4ca880042 100644 --- a/include/commands/cmd_qline.h +++ b/include/commands/cmd_qline.h @@ -29,7 +29,7 @@ class CommandQline : public Command public: /** Constructor for qline. */ - CommandQline (InspIRCd* Instance) : Command(Instance,"QLINE","o",1,false,0) { syntax = " [ :]"; } + CommandQline (InspIRCd* Instance) : Command(Instance,"QLINE","o",1,3,false,0) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_wallops.h b/include/commands/cmd_wallops.h index fdc522fc6..96fa1ccd9 100644 --- a/include/commands/cmd_wallops.h +++ b/include/commands/cmd_wallops.h @@ -29,7 +29,7 @@ class CommandWallops : public Command public: /** Constructor for wallops. */ - CommandWallops (InspIRCd* Instance) : Command(Instance,"WALLOPS","o",1) { syntax = ""; } + CommandWallops (InspIRCd* Instance) : Command(Instance,"WALLOPS","o",1,1) { syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/include/commands/cmd_zline.h b/include/commands/cmd_zline.h index ddf4b956e..f5ea879bb 100644 --- a/include/commands/cmd_zline.h +++ b/include/commands/cmd_zline.h @@ -29,7 +29,7 @@ class CommandZline : public Command public: /** Constructor for zline. */ - CommandZline (InspIRCd* Instance) : Command(Instance,"ZLINE","o",1,false,0) { syntax = " [ :]"; } + CommandZline (InspIRCd* Instance) : Command(Instance,"ZLINE","o",1,3,false,0) { syntax = " [ :]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command -- cgit v1.2.3