summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-08 12:57:27 +0100
committerSadie Powell <sadie@witchery.services>2025-05-08 16:53:10 +0100
commit34582a40ef8f719c7cef45cb80855573b045feb9 (patch)
tree51aca4d4dff1b0dcfde36e0bda2215d6866a8567 /include
parent0b7b4aa42d07e6d492fea1657c5d73c26a0fd519 (diff)
Change Command::Run to return true on success.
Diffstat (limited to 'include')
-rw-r--r--include/commands.h4
1 files changed, 2 insertions, 2 deletions
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<Anope::string> &params);
+ bool Run(CommandSource &source, const Anope::string &, const CommandInfo &, std::vector<Anope::string> &params);
/** 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