diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 21:41:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 21:41:09 +0000 |
commit | 71eb82a9807d96139ef56c5a5be7653507e89aa9 (patch) | |
tree | 1e8bd13339aac1a8d816e20d3cbeb93e77e37add /include | |
parent | ffbd1eebf0b82bf40482879f410f58874030a695 (diff) |
Fix unused HandleServer to use new system too, and update comments to match api
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9609 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/command_parse.h | 3 | ||||
-rw-r--r-- | include/ctables.h | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/command_parse.h b/include/command_parse.h index a8a14497e..be980a4cb 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -93,8 +93,7 @@ class CoreExport CommandParser : public classbase /** Calls the handler for a given command. * @param commandname The command to find. This should be in uppercase. - * @param parameters Parameter list as an array of array of char (that's not a typo). - * @param pcnt The number of items in the parameters list + * @param parameters Parameter list * @param user The user to call the handler on behalf of * @return This method will return CMD_SUCCESS if the command handler was found and called, * and the command completeld successfully. It will return CMD_FAILURE if the command handler was found diff --git a/include/ctables.h b/include/ctables.h index 8ca08d9e4..d9f660f71 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -107,7 +107,6 @@ class CoreExport Command : public Extensible /** Handle the command from a user. * @param parameters The parameters for the command. - * @param pcnt The number of parameters available in 'parameters' * @param user The user who issued the command. * @return Return CMD_SUCCESS on success, or CMD_FAILURE on failure. * If the command succeeds but should remain local to this server, @@ -130,13 +129,12 @@ class CoreExport Command : public Extensible /** Handle the command from a server. * Not currently used in this version of InspIRCd. * @param parameters The parameters given - * @param pcnt The number of parameters available * @param servername The server name which issued the command * @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. */ - virtual CmdResult HandleServer(const char* const* /* parameters */, int /* pcnt */, const std::string& /* servername */) + virtual CmdResult HandleServer(const std::vector<std::string>& /* parameters */, const std::string& /* servername */) { return CMD_INVALID; } |