From 0b878f54cfce452b6829ab00950f6d062cec0f10 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 14 Sep 2009 20:24:25 +0000 Subject: Fix incorrect min/max parameters on commands git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11722 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_join.cpp | 2 +- src/commands/cmd_kick.cpp | 2 +- src/commands/cmd_motd.cpp | 2 +- src/commands/cmd_notice.cpp | 2 +- src/commands/cmd_ping.cpp | 2 +- src/commands/cmd_privmsg.cpp | 2 +- src/commands/cmd_stats.cpp | 2 +- src/commands/cmd_user.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_join.cpp b/src/commands/cmd_join.cpp index 1213c78b1..73cae4746 100644 --- a/src/commands/cmd_join.cpp +++ b/src/commands/cmd_join.cpp @@ -31,7 +31,7 @@ class CommandJoin : public Command public: /** Constructor for join. */ - CommandJoin ( Module* parent) : Command(parent,"JOIN", 0, 1) { syntax = "{,} {{,}}"; Penalty = 2; } + CommandJoin ( Module* parent) : Command(parent,"JOIN", 1, 2) { syntax = "{,} {{,}}"; Penalty = 2; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/src/commands/cmd_kick.cpp b/src/commands/cmd_kick.cpp index 90655ba6f..d07d53836 100644 --- a/src/commands/cmd_kick.cpp +++ b/src/commands/cmd_kick.cpp @@ -31,7 +31,7 @@ class CommandKick : public Command public: /** Constructor for kick. */ - CommandKick ( Module* parent) : Command(parent,"KICK",0,2) { syntax = " {,} []"; } + CommandKick ( Module* parent) : Command(parent,"KICK",2,3) { syntax = " {,} []"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/src/commands/cmd_motd.cpp b/src/commands/cmd_motd.cpp index 0a6aaeac3..0e0785e93 100644 --- a/src/commands/cmd_motd.cpp +++ b/src/commands/cmd_motd.cpp @@ -34,7 +34,7 @@ class CommandMotd : public Command public: /** Constructor for motd. */ - CommandMotd ( Module* parent) : Command(parent,"MOTD",0,0) { syntax = "[]"; } + CommandMotd ( Module* parent) : Command(parent,"MOTD",0,1) { syntax = "[]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/src/commands/cmd_notice.cpp b/src/commands/cmd_notice.cpp index 0b82c5485..ced17072f 100644 --- a/src/commands/cmd_notice.cpp +++ b/src/commands/cmd_notice.cpp @@ -22,7 +22,7 @@ class CommandNotice : public Command public: /** Constructor for notice. */ - CommandNotice ( Module* parent) : Command(parent,"NOTICE",0,2) { syntax = "{,} "; } + CommandNotice ( Module* parent) : Command(parent,"NOTICE",2,2) { syntax = "{,} "; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/src/commands/cmd_ping.cpp b/src/commands/cmd_ping.cpp index c83d1b38f..e7898921a 100644 --- a/src/commands/cmd_ping.cpp +++ b/src/commands/cmd_ping.cpp @@ -23,7 +23,7 @@ class CommandPing : public Command public: /** Constructor for ping. */ - CommandPing ( Module* parent) : Command(parent,"PING", 0, 1) { Penalty = 0; syntax = " [:]"; } + CommandPing ( Module* parent) : Command(parent,"PING", 1, 2) { Penalty = 0; syntax = " [:]"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/src/commands/cmd_privmsg.cpp b/src/commands/cmd_privmsg.cpp index de2ef5a1b..781ad8bac 100644 --- a/src/commands/cmd_privmsg.cpp +++ b/src/commands/cmd_privmsg.cpp @@ -23,7 +23,7 @@ class CommandPrivmsg : public Command public: /** Constructor for privmsg. */ - CommandPrivmsg ( Module* parent) : Command(parent,"PRIVMSG",0,2) { syntax = "{,} "; } + CommandPrivmsg ( Module* parent) : Command(parent,"PRIVMSG",2,2) { syntax = "{,} "; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index 9f2890bd7..7ffa4a93c 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -36,7 +36,7 @@ class CommandStats : public Command public: /** Constructor for stats. */ - CommandStats ( Module* parent) : Command(parent,"STATS",0,1) { syntax = " []"; } + CommandStats ( Module* parent) : Command(parent,"STATS",1,2) { syntax = " []"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command diff --git a/src/commands/cmd_user.cpp b/src/commands/cmd_user.cpp index 8f2a30908..e2f81f33c 100644 --- a/src/commands/cmd_user.cpp +++ b/src/commands/cmd_user.cpp @@ -23,7 +23,7 @@ class CommandUser : public Command public: /** Constructor for user. */ - CommandUser ( Module* parent) : Command(parent,"USER",0,4) { works_before_reg = true; Penalty = 0; syntax = " "; } + CommandUser ( Module* parent) : Command(parent,"USER",4,4) { works_before_reg = true; Penalty = 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