summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/commands/cmd_eline.h2
-rw-r--r--include/commands/cmd_kline.h2
-rw-r--r--include/commands/cmd_qline.h2
-rw-r--r--include/commands/cmd_wallops.h2
-rw-r--r--include/commands/cmd_zline.h2
-rw-r--r--src/modules/m_cban.cpp2
-rw-r--r--src/modules/m_chgname.cpp2
-rw-r--r--src/modules/m_filter.cpp2
-rw-r--r--src/modules/m_globops.cpp2
-rw-r--r--src/modules/m_rline.cpp3
-rw-r--r--src/modules/m_sapart.cpp2
-rw-r--r--src/modules/m_saquit.cpp2
-rw-r--r--src/modules/m_satopic.cpp2
-rw-r--r--src/modules/m_setname.cpp2
-rw-r--r--src/modules/m_shun.cpp3
-rw-r--r--src/modules/m_swhois.cpp2
16 files changed, 18 insertions, 16 deletions
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 = "<ident@host> [<duration> :<reason>]"; }
+ CommandEline (InspIRCd* Instance) : Command(Instance,"ELINE","o",1,3,false,0) { syntax = "<ident@host> [<duration> :<reason>]"; }
/** 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 = "<ident@host> [<duration> :<reason>]"; }
+ CommandKline (InspIRCd* Instance) : Command(Instance,"KLINE","o",1,3,false,0) { syntax = "<ident@host> [<duration> :<reason>]"; }
/** 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 = "<nick> [<duration> :<reason>]"; }
+ CommandQline (InspIRCd* Instance) : Command(Instance,"QLINE","o",1,3,false,0) { syntax = "<nick> [<duration> :<reason>]"; }
/** 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 = "<any-text>"; }
+ CommandWallops (InspIRCd* Instance) : Command(Instance,"WALLOPS","o",1,1) { syntax = "<any-text>"; }
/** 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 = "<ipmask> [<duration> :<reason>]"; }
+ CommandZline (InspIRCd* Instance) : Command(Instance,"ZLINE","o",1,3,false,0) { syntax = "<ipmask> [<duration> :<reason>]"; }
/** Handle command.
* @param parameters The parameters to the comamnd
* @param pcnt The number of parameters passed to teh command
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index 472b5ad09..1350a0afb 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -81,7 +81,7 @@ class CBanFactory : public XLineFactory
class CommandCBan : public Command
{
public:
- CommandCBan(InspIRCd* Me) : Command(Me, "CBAN", "o", 1)
+ CommandCBan(InspIRCd* Me) : Command(Me, "CBAN", "o", 1, 3)
{
this->source = "m_cban.so";
this->syntax = "<channel> [<duration> :<reason>]";
diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp
index 37c7e9ff8..66aa53c6c 100644
--- a/src/modules/m_chgname.cpp
+++ b/src/modules/m_chgname.cpp
@@ -20,7 +20,7 @@
class CommandChgname : public Command
{
public:
- CommandChgname (InspIRCd* Instance) : Command(Instance,"CHGNAME", "o", 2)
+ CommandChgname (InspIRCd* Instance) : Command(Instance,"CHGNAME", "o", 2, 2)
{
this->source = "m_chgname.so";
syntax = "<nick> <newname>";
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 3521f6687..3c53cccd7 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -130,7 +130,7 @@ class CommandFilter : public Command
{
FilterBase* Base;
public:
- CommandFilter(FilterBase* f, InspIRCd* Me, const std::string &ssource) : Command(Me, "FILTER", "o", 1), Base(f)
+ CommandFilter(FilterBase* f, InspIRCd* Me, const std::string &ssource) : Command(Me, "FILTER", "o", 1, 5), Base(f)
{
this->source = ssource;
this->syntax = "<filter-definition> <type> <flags> [<gline-duration>] :<reason>";
diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp
index b487d4a74..8def83bf3 100644
--- a/src/modules/m_globops.cpp
+++ b/src/modules/m_globops.cpp
@@ -22,7 +22,7 @@
class CommandGlobops : public Command
{
public:
- CommandGlobops (InspIRCd* Instance) : Command(Instance,"GLOBOPS","o",1)
+ CommandGlobops (InspIRCd* Instance) : Command(Instance,"GLOBOPS","o",1,1)
{
this->source = "m_globops.so";
syntax = "<any-text>";
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp
index 86af010de..b3ccfe8ef 100644
--- a/src/modules/m_rline.cpp
+++ b/src/modules/m_rline.cpp
@@ -116,9 +116,10 @@ class CommandRLine : public Command
std::string rxengine;
public:
- CommandRLine (InspIRCd* Instance) : Command(Instance,"RLINE", "o", 1)
+ CommandRLine (InspIRCd* Instance) : Command(Instance,"RLINE", "o", 1, 3)
{
this->source = "m_rline.so";
+ this->syntax = "<regex> [<rline-duration>] :<reason>";
}
CmdResult Handle (const std::vector<std::string>& parameters, User *user)
diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp
index c010b289f..732376661 100644
--- a/src/modules/m_sapart.cpp
+++ b/src/modules/m_sapart.cpp
@@ -20,7 +20,7 @@
class CommandSapart : public Command
{
public:
- CommandSapart (InspIRCd* Instance) : Command(Instance,"SAPART", "o", 2, false, 0)
+ CommandSapart (InspIRCd* Instance) : Command(Instance,"SAPART", "o", 2, 3, false, 0)
{
this->source = "m_sapart.so";
syntax = "<nick> <channel> [reason]";
diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp
index f96c19890..7248b10ae 100644
--- a/src/modules/m_saquit.cpp
+++ b/src/modules/m_saquit.cpp
@@ -20,7 +20,7 @@
class CommandSaquit : public Command
{
public:
- CommandSaquit (InspIRCd* Instance) : Command(Instance, "SAQUIT", "o", 2, false, 0)
+ CommandSaquit (InspIRCd* Instance) : Command(Instance, "SAQUIT", "o", 2, 3, false, 0)
{
this->source = "m_saquit.so";
syntax = "<nick> <reason>";
diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp
index 855a5ca56..69a9090cf 100644
--- a/src/modules/m_satopic.cpp
+++ b/src/modules/m_satopic.cpp
@@ -21,7 +21,7 @@ class CommandSATopic : public Command
{
public:
CommandSATopic (InspIRCd* Instance)
- : Command(Instance,"SATOPIC", "o", 2, false, 0)
+ : Command(Instance,"SATOPIC", "o", 2, 2, false, 0)
{
this->source = "m_satopic.so";
syntax = "<target> <topic>";
diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp
index 1e8bceb8a..0a325161c 100644
--- a/src/modules/m_setname.cpp
+++ b/src/modules/m_setname.cpp
@@ -20,7 +20,7 @@
class CommandSetname : public Command
{
public:
- CommandSetname (InspIRCd* Instance) : Command(Instance,"SETNAME", 0, 1)
+ CommandSetname (InspIRCd* Instance) : Command(Instance,"SETNAME", 0, 1, 1)
{
this->source = "m_setname.so";
syntax = "<new-gecos>";
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 739bfb36a..c39962658 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -73,9 +73,10 @@ class cmd_shun : public Command
InspIRCd *Srv;
public:
- cmd_shun(InspIRCd* Me) : Command(Me, "SHUN", "o", 1), Srv(Me)
+ cmd_shun(InspIRCd* Me) : Command(Me, "SHUN", "o", 1, 3), Srv(Me)
{
this->source = "m_shun.so";
+ this->syntax = "<nick!user@hostmask> [<shun-duration>] :<reason>";
}
CmdResult Handle(const std::vector<std::string>& parameters, User *user)
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index 4ed178278..50bd4095d 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -21,7 +21,7 @@ class CommandSwhois : public Command
{
public:
- CommandSwhois (InspIRCd* Instance) : Command(Instance,"SWHOIS","o",2)
+ CommandSwhois (InspIRCd* Instance) : Command(Instance,"SWHOIS","o",2, 2)
{
this->source = "m_swhois.so";
syntax = "<nick> :<swhois>";