diff options
| author | 2026-03-05 04:20:52 +0000 | |
|---|---|---|
| committer | 2026-03-05 04:20:52 +0000 | |
| commit | fa0e1352faea9419fab094c4da0d6b2cdeb1fc83 (patch) | |
| tree | 482d75ca32bfd043a96933b1a090fcedccd6467d /include/command.h | |
| parent | Only reset the specific type of reference when adding services. (diff) | |
Deduplicate command usability checks into Command::IsUsableBy.
Diffstat (limited to 'include/command.h')
| -rw-r--r-- | include/command.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
