1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 01:23:12 +02:00

Make CTCP support more modular.

This commit is contained in:
Sadie Powell
2025-05-10 14:15:27 +01:00
parent 7b2f0f5790
commit 50030e07fa
3 changed files with 35 additions and 10 deletions
+2
View File
@@ -41,6 +41,8 @@ public:
time_t lastmsg;
/* Map of actual command names -> service name/permission required */
CommandInfo::map commands;
/** CTCP responses this bot can send. */
Anope::map<std::function<void(BotInfo *, User *, const Anope::string &)>> ctcps;
/* The server-side alias used to message this bot. */
Anope::string alias;
/* Modes the bot should have as configured in service:modes */