diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 14:51:59 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 14:51:59 +0000 |
commit | ff8f998b2b855467de14d31ced9762dfdce65cce (patch) | |
tree | 3c4216b276b75dc5f27535533e91a2f59f84c104 /include/commands | |
parent | 710689b2c4f6f0bdeb349e101941943af8fcd07b (diff) |
Add penalties for WHO, INVITE, LIST, JOIN, PART.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8257 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/commands')
-rw-r--r-- | include/commands/cmd_invite.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_join.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_list.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_part.h | 2 | ||||
-rw-r--r-- | 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 = "[<nick> <channel>]"; } + cmd_invite (InspIRCd* Instance) : Command(Instance,"INVITE", 0, 0, false, 4) { syntax = "[<nick> <channel>]"; } /** 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 = "<channel>{,<channel>} {<key>{,<key>}}"; } + cmd_join (InspIRCd* Instance) : Command(Instance,"JOIN", 0, 1, false, 2) { syntax = "<channel>{,<channel>} {<key>{,<key>}}"; } /** 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 = "<channel>{,<channel>} [<reason>]"; } + cmd_part (InspIRCd* Instance) : Command(Instance,"PART", 0, 1, false, 5) { syntax = "<channel>{,<channel>} [<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_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 = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; } + cmd_who (InspIRCd* Instance) : Command(Instance,"WHO", 0, 1, false, 2) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; } void SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector<std::string> &whoresults); /** Handle command. * @param parameters The parameters to the comamnd |