From 11edba04feea242a320b06cb45fb892fb500bd1e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 12 Mar 2024 21:57:06 +0000 Subject: Add command handlers for encap commands on InspIRCd. --- include/anope.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index 9145b7337..819de40ee 100644 --- a/include/anope.h +++ b/include/anope.h @@ -535,10 +535,18 @@ namespace Anope */ extern CoreExport Anope::string NormalizeBuffer(const Anope::string &); - /** Main processing routine. Parses the message and takes the appropriate action. - * @param Raw message from the uplink + /** Parses a raw message from the uplink and calls its command handler. + * @param message Raw message from the uplink */ - extern void Process(const Anope::string &); + extern void Process(const Anope::string &message); + + /** Calls the command handler for an already parsed message. + * @param source Source of the message. + * @param command Command name. + * @param params Any extra parameters. + * @param tags IRCv3 message tags. + */ + extern CoreExport void ProcessInternal(MessageSource &src, const Anope::string &command, const std::vector ¶ms, const Anope::map & tags); /** Does a blocking dns query and returns the first IP. * @param host host to look up -- cgit