From ff8f998b2b855467de14d31ced9762dfdce65cce Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 21 Oct 2007 14:51:59 +0000 Subject: Add penalties for WHO, INVITE, LIST, JOIN, PART. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8257 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/commands/cmd_invite.h | 2 +- include/commands/cmd_join.h | 2 +- include/commands/cmd_list.h | 2 +- include/commands/cmd_part.h | 2 +- include/commands/cmd_who.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/commands/cmd_invite.h b/include/commands/cmd_invite.h index ad78869b2..4232e10d5 100644 --- a/include/commands/cmd_invite.h +++ b/include/commands/cmd_invite.h @@ -29,7 +29,7 @@ class cmd_invite : public Command public: /** Constructor for invite. */ - cmd_invite (InspIRCd* Instance) : Command(Instance,"INVITE",0,0) { syntax = "[ ]"; } + cmd_invite (InspIRCd* Instance) : Command(Instance,"INVITE", 0, 0, false, 4) { 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_join.h b/include/commands/cmd_join.h index 6889b71fe..e1e720341 100644 --- a/include/commands/cmd_join.h +++ b/include/commands/cmd_join.h @@ -29,7 +29,7 @@ class cmd_join : public Command public: /** Constructor for join. */ - cmd_join (InspIRCd* Instance) : Command(Instance,"JOIN",0,1) { syntax = "{,} {{,}}"; } + cmd_join (InspIRCd* Instance) : Command(Instance,"JOIN", 0, 1, false, 2) { 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_list.h b/include/commands/cmd_list.h index fabe50fca..c4033361a 100644 --- a/include/commands/cmd_list.h +++ b/include/commands/cmd_list.h @@ -29,7 +29,7 @@ class cmd_list : public Command public: /** Constructor for list. */ - cmd_list (InspIRCd* Instance) : Command(Instance,"LIST",0,0) { } + cmd_list (InspIRCd* Instance) : Command(Instance,"LIST", 0, 0, false, 5) { } /** 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_part.h b/include/commands/cmd_part.h index 0965a5031..626e4da1e 100644 --- a/include/commands/cmd_part.h +++ b/include/commands/cmd_part.h @@ -29,7 +29,7 @@ class cmd_part : public Command public: /** Constructor for part. */ - cmd_part (InspIRCd* Instance) : Command(Instance,"PART",0,1) { syntax = "{,} []"; } + cmd_part (InspIRCd* Instance) : Command(Instance,"PART", 0, 1, false, 5) { 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_who.h b/include/commands/cmd_who.h index 7d1bab933..e0f6f61c6 100644 --- a/include/commands/cmd_who.h +++ b/include/commands/cmd_who.h @@ -41,7 +41,7 @@ class cmd_who : public Command public: /** Constructor for who. */ - cmd_who (InspIRCd* Instance) : Command(Instance,"WHO",0,1) { syntax = "|||||0 [ohurmMiaplf]"; } + cmd_who (InspIRCd* Instance) : Command(Instance,"WHO", 0, 1, false, 2) { syntax = "|||||0 [ohurmMiaplf]"; } void SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector &whoresults); /** Handle command. * @param parameters The parameters to the comamnd -- cgit v1.2.3