diff options
author | Sadie Powell <sadie@witchery.services> | 2024-10-22 16:16:32 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-10-22 16:29:22 +0100 |
commit | f1751dcb213b953ff362eda3276e210258a7cdb2 (patch) | |
tree | fab818dd75eaafee74d0b80e9d3da3e28aa0244c /include/bots.h | |
parent | 8b026135492c13ae030b27cb6ec6c5b09131c0bd (diff) |
Replace usestrictprivmsg with something actually useful.
Every IRC server we support (other than Bahamut which is probably
on the chopping bock) uses UIDs so this setting does nothing.
Instead, allow configuring a server-side alias for each service
and use that when servicealias is enabled.
Diffstat (limited to 'include/bots.h')
-rw-r--r-- | include/bots.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bots.h b/include/bots.h index 711e306b5..e64c097df 100644 --- a/include/bots.h +++ b/include/bots.h @@ -31,6 +31,8 @@ public: time_t lastmsg; /* Map of actual command names -> service name/permission required */ CommandInfo::map commands; + /* The server-side alias used to message this bot. */ + Anope::string alias; /* Modes the bot should have as configured in service:modes */ Anope::string botmodes; /* Channels the bot should be in as configured in service:channels */ @@ -126,6 +128,9 @@ public: */ CommandInfo *GetCommand(const Anope::string &cname); + /** Get the command that users can use to send a message to this bot. */ + Anope::string GetQueryCommand() const; + /** Find a bot by nick * @param nick The nick * @param nick_only True to only look by nick, and not by UID |