From 34582a40ef8f719c7cef45cb80855573b045feb9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 8 May 2025 12:57:27 +0100 Subject: Change Command::Run to return true on success. --- include/commands.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/commands.h b/include/commands.h index 49a8e2183..c4c7df663 100644 --- a/include/commands.h +++ b/include/commands.h @@ -173,9 +173,9 @@ public: * @param source The source of the command * @param message The full message to run, the command is at the beginning of the message */ - static void Run(CommandSource &source, const Anope::string &message); + static bool Run(CommandSource &source, const Anope::string &message); - void Run(CommandSource &source, const Anope::string &, const CommandInfo &, std::vector ¶ms); + bool Run(CommandSource &source, const Anope::string &, const CommandInfo &, std::vector ¶ms); /** Looks up a command name from the service name. * Note that if the same command exists multiple places this will return the first one encountered -- cgit