diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 17:26:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 17:26:46 +0000 |
commit | 1afe64600c5affe07bc51cb0be4cc9f2229247da (patch) | |
tree | 516e9aebf06caa9984c5e620b35c483cd7523a85 /include/commands | |
parent | 1106ed5571cc086978ab2c024aadd81aaa7b4031 (diff) |
Set penalties (documentation page listing these to come)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8262 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/commands')
-rw-r--r-- | include/commands/cmd_connect.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_die.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_map.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_oper.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_pass.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_rehash.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_restart.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_topic.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_user.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_whois.h | 2 | ||||
-rw-r--r-- | include/commands/cmd_whowas.h | 14 |
11 files changed, 17 insertions, 17 deletions
diff --git a/include/commands/cmd_connect.h b/include/commands/cmd_connect.h index 97096acb6..97c4931a3 100644 --- a/include/commands/cmd_connect.h +++ b/include/commands/cmd_connect.h @@ -29,7 +29,7 @@ class cmd_connect : public Command public: /** Constructor for connect. */ - cmd_connect (InspIRCd* Instance) : Command(Instance,"CONNECT",'o',1) { syntax = "<servername> [<remote-server>]"; } + cmd_connect (InspIRCd* Instance) : Command(Instance,"CONNECT",'o',1,false,0) { syntax = "<servername> [<remote-server>]"; } /** 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_die.h b/include/commands/cmd_die.h index 2eb9f7a6d..c078f67b7 100644 --- a/include/commands/cmd_die.h +++ b/include/commands/cmd_die.h @@ -29,7 +29,7 @@ class cmd_die : public Command public: /** Constructor for die. */ - cmd_die (InspIRCd* Instance) : Command(Instance,"DIE",'o',1) { syntax = "<password>"; } + cmd_die (InspIRCd* Instance) : Command(Instance,"DIE",'o',1,false,0) { syntax = "<password>"; } /** 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_map.h b/include/commands/cmd_map.h index e3f546d7b..b80e0e8f8 100644 --- a/include/commands/cmd_map.h +++ b/include/commands/cmd_map.h @@ -29,7 +29,7 @@ class cmd_map : public Command public: /** Constructor for map. */ - cmd_map (InspIRCd* Instance) : Command(Instance,"MAP",0,0) { } + cmd_map (InspIRCd* Instance) : Command(Instance,"MAP",0,0,false,2) { } /** 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_oper.h b/include/commands/cmd_oper.h index 581cfea16..e6cf7c844 100644 --- a/include/commands/cmd_oper.h +++ b/include/commands/cmd_oper.h @@ -31,7 +31,7 @@ class cmd_oper : public Command public: /** Constructor for oper. */ - cmd_oper (InspIRCd* Instance) : Command(Instance,"OPER",0,2) { syntax = "<username> <password>"; } + cmd_oper (InspIRCd* Instance) : Command(Instance,"OPER",0,2,false,2) { syntax = "<username> <password>"; } /** 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_pass.h b/include/commands/cmd_pass.h index 26e360923..c4087c86a 100644 --- a/include/commands/cmd_pass.h +++ b/include/commands/cmd_pass.h @@ -32,7 +32,7 @@ class cmd_pass : public Command public: /** Constructor for pass. */ - cmd_pass (InspIRCd* Instance) : Command(Instance,"PASS",0,1,true) { syntax = "<password>"; } + cmd_pass (InspIRCd* Instance) : Command(Instance,"PASS",0,1,true,false,0) { syntax = "<password>"; } /** 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_rehash.h b/include/commands/cmd_rehash.h index 401247972..003b8c32a 100644 --- a/include/commands/cmd_rehash.h +++ b/include/commands/cmd_rehash.h @@ -29,7 +29,7 @@ class cmd_rehash : public Command public: /** Constructor for rehash. */ - cmd_rehash (InspIRCd* Instance) : Command(Instance,"REHASH",'o',0) { syntax = "[<servermask>]"; } + cmd_rehash (InspIRCd* Instance) : Command(Instance,"REHASH",'o',0,false,3) { syntax = "[<servermask>]"; } /** 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_restart.h b/include/commands/cmd_restart.h index f85a00a82..2a5c7eda4 100644 --- a/include/commands/cmd_restart.h +++ b/include/commands/cmd_restart.h @@ -32,7 +32,7 @@ class cmd_restart : public Command public: /** Constructor for restart. */ - cmd_restart (InspIRCd* Instance) : Command(Instance,"RESTART",'o',1) { syntax = "<password>"; } + cmd_restart (InspIRCd* Instance) : Command(Instance,"RESTART",'o',1,false,0) { syntax = "<password>"; } /** 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_topic.h b/include/commands/cmd_topic.h index 3375c1641..7c265e85f 100644 --- a/include/commands/cmd_topic.h +++ b/include/commands/cmd_topic.h @@ -29,7 +29,7 @@ class cmd_topic : public Command public: /** Constructor for topic. */ - cmd_topic (InspIRCd* Instance) : Command(Instance,"TOPIC",0,1) { syntax = "<channel> [<topic>]"; } + cmd_topic (InspIRCd* Instance) : Command(Instance,"TOPIC",0,1,false,2) { syntax = "<channel> [<topic>]"; } /** 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_user.h b/include/commands/cmd_user.h index 186269d9a..ce9b497a4 100644 --- a/include/commands/cmd_user.h +++ b/include/commands/cmd_user.h @@ -29,7 +29,7 @@ class cmd_user : public Command public: /** Constructor for user. */ - cmd_user (InspIRCd* Instance) : Command(Instance,"USER",0,4,true) { syntax = "<username> <localhost> <remotehost> <GECOS>"; } + cmd_user (InspIRCd* Instance) : Command(Instance,"USER",0,4,true,0) { syntax = "<username> <localhost> <remotehost> <GECOS>"; } /** 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_whois.h b/include/commands/cmd_whois.h index b83fe8e5f..bf105c020 100644 --- a/include/commands/cmd_whois.h +++ b/include/commands/cmd_whois.h @@ -32,7 +32,7 @@ class cmd_whois : public Command public: /** Constructor for whois. */ - cmd_whois (InspIRCd* Instance) : Command(Instance,"WHOIS",0,1) { syntax = "<nick>{,<nick>}"; } + cmd_whois (InspIRCd* Instance) : Command(Instance,"WHOIS",0,1,false,2) { syntax = "<nick>{,<nick>}"; } /** 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_whowas.h b/include/commands/cmd_whowas.h index ca411de07..4df20e579 100644 --- a/include/commands/cmd_whowas.h +++ b/include/commands/cmd_whowas.h @@ -80,13 +80,13 @@ class cmd_whowas : public Command * @return A value from CmdResult to indicate command success or failure. */ CmdResult Handle(const char** parameters, int pcnt, User *user); - /** Handle an internal request from another command, the core, or a module - * @param Command ID - * @param Zero or more parameters, whos form is specified by the command ID. - * @return Return CMD_SUCCESS on success, or CMD_FAILURE on failure. - * If the command succeeds but should remain local to this server, - * return CMD_LOCALONLY. - */ + /** Handle an internal request from another command, the core, or a module + * @param Command ID + * @param Zero or more parameters, whos form is specified by the command ID. + * @return Return CMD_SUCCESS on success, or CMD_FAILURE on failure. + * If the command succeeds but should remain local to this server, + * return CMD_LOCALONLY. + */ CmdResult HandleInternal(const unsigned int id, const std::deque<classbase*> ¶meters); void AddToWhoWas(User* user); void GetStats(Extensible* ext); |