aboutsummaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-19 11:40:15 +0000
committerGravatar Sadie Powell2022-01-19 11:44:35 +0000
commit28513865ce4960a7065f29de707ca2845dda12a1 (patch)
tree9eefe83f928dd1a9385cd5c39ce6ccb712094f60 /include/command_parse.h
parentMerge branch 'insp3' into master. (diff)
Fix aliases which require routing to be broadcast out.
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 74de719ae..e384e992a 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -37,13 +37,6 @@ class CoreExport CommandParser final
typedef std::unordered_map<std::string, Command*, irc::insensitive, irc::StrHashComp> CommandMap;
private:
- /** Process a command from a user.
- * @param user The user to parse the command for.
- * @param command The name of the command.
- * @param parameters The parameters to the command.
- */
- void ProcessCommand(LocalUser* user, std::string& command, CommandBase::Params& parameters);
-
/** Command list, a hash_map of command names to Command*
*/
CommandMap cmdlist;
@@ -119,6 +112,13 @@ class CoreExport CommandParser final
*/
void ProcessBuffer(LocalUser* user, const std::string& buffer);
+ /** Process a command from a user.
+ * @param user The user to parse the command for.
+ * @param command The name of the command.
+ * @param parameters The parameters to the command.
+ */
+ void ProcessCommand(LocalUser* user, std::string& command, CommandBase::Params& parameters);
+
/** Add a new command to the commands hash
* @param f The new Command to add to the list
* @return True if the command was added