diff options
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 |