From fa0e1352faea9419fab094c4da0d6b2cdeb1fc83 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 5 Mar 2026 04:20:52 +0000 Subject: Deduplicate command usability checks into Command::IsUsableBy. --- include/command.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/command.h') diff --git a/include/command.h b/include/command.h index 77f6be643..2b0422758 100644 --- a/include/command.h +++ b/include/command.h @@ -278,6 +278,11 @@ public: */ virtual CmdResult Handle(User* user, const Params& parameters) = 0; + /** Determines if this command is usable by the specified. + * @param user The user to check. + */ + bool IsUsableBy(User* user) const; + /** @copydoc ServiceProvider::RegisterService */ void RegisterService() override; -- cgit v1.3.1-10-gc9f91