diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-09 18:17:02 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-10 13:34:25 +0100 |
commit | 9351debd73cb22f33bc46c201c9d66ec09ea773e (patch) | |
tree | be92bdd1d1f288f375d6ff7fa00afc3db75e255d /include | |
parent | 40d558ef21a438bf1dff9ac522cd852166fc4c44 (diff) |
Expand GetQueryCommand to take a command name.
Diffstat (limited to 'include')
-rw-r--r-- | include/bots.h | 2 | ||||
-rw-r--r-- | include/commands.h | 2 | ||||
-rw-r--r-- | include/language.h | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/include/bots.h b/include/bots.h index d5e935d14..17f336023 100644 --- a/include/bots.h +++ b/include/bots.h @@ -139,7 +139,7 @@ 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; + Anope::string GetQueryCommand(const Anope::string &command = "", const Anope::string &extra = "") const; /** Find a bot by nick * @param nick The nick diff --git a/include/commands.h b/include/commands.h index 56ffa4c6f..e9df980e0 100644 --- a/include/commands.h +++ b/include/commands.h @@ -150,7 +150,7 @@ public: */ virtual void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) = 0; - /** Called when HELP is requested for the client this command is on. + /** Called when help is requested for the client this command is on. * @param source The source */ virtual void OnServHelp(CommandSource &source); diff --git a/include/language.h b/include/language.h index f9934e642..7c01ded47 100644 --- a/include/language.h +++ b/include/language.h @@ -100,9 +100,9 @@ namespace Language } // namespace Language /* Commonly used language strings */ -#define CONFIRM_DROP _("Please confirm that you want to drop \002%s\002 with \002%s DROP %s %s\002") +#define CONFIRM_DROP _("Please confirm that you want to drop \002%s\002 with \002%s %s %s\002") #define SERVICE_UNAVAILABLE _("Sorry, %s is temporarily unavailable.") -#define MORE_INFO _("\002%s HELP %s\002 for more information.") +#define MORE_INFO _("\002%s\002 for more information.") #define BAD_USERHOST_MASK _("Mask must be in the form \037user\037@\037host\037.") #define BAD_EXPIRY_TIME _("Invalid expiry time.") #define USERHOST_MASK_TOO_WIDE _("%s coverage is too wide; Please use a more specific mask.") @@ -128,7 +128,7 @@ namespace Language #define NO_EXPIRE _("does not expire") #define LIST_INCORRECT_RANGE _("Incorrect range specified. The correct syntax is \002#\037from\037-\037to\037\002.") #define NICK_IS_SECURE _("This nickname is registered and protected. If it is your\n" \ - "nick, type \002%s IDENTIFY \037password\037\002. Otherwise,\n" \ + "nick, type \002%s \037password\037\002. Otherwise,\n" \ "please choose a different nick.") #define FORCENICKCHANGE_NOW _("This nickname has been registered; you may not use it.") #define NICK_CANNOT_BE_REGISTERED _("Nickname \002%s\002 may not be registered.") @@ -146,9 +146,9 @@ namespace Language #define CHAN_INFO_HEADER _("Information about channel \002%s\002:") #define CHAN_EXCEPTED _("\002%s\002 matches an except on %s and cannot be banned until the except has been removed.") #define MEMO_NEW_X_MEMO_ARRIVED _("There is a new memo on channel %s.\n" \ - "Type \002%s READ %s %zu\002 to read it.") + "Type \002%s %s %zu\002 to read it.") #define MEMO_NEW_MEMO_ARRIVED _("You have a new memo from %s.\n" \ - "Type \002%s READ %zu\002 to read it.") + "Type \002%s %zu\002 to read it.") #define MEMO_HAVE_NO_MEMOS _("You have no memos.") #define MEMO_X_HAS_NO_MEMOS _("%s has no memos.") #define MEMO_HAVE_NO_NEW_MEMOS _("You have no new memos.") |