diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-12 21:57:06 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-12 21:57:06 +0000 |
commit | 11edba04feea242a320b06cb45fb892fb500bd1e (patch) | |
tree | 45fc9371d11bacc03d4af0abe3304daa988b14b4 /include | |
parent | 22ba54b00dbeef1a7ab14c5d22a7360b47c29a40 (diff) |
Add command handlers for encap commands on InspIRCd.
Diffstat (limited to 'include')
-rw-r--r-- | include/anope.h | 14 |
1 files changed, 11 insertions, 3 deletions
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<Anope::string> ¶ms, const Anope::map<Anope::string> & tags); /** Does a blocking dns query and returns the first IP. * @param host host to look up |