From f97448f48a8d4defc0175f61d8579f2483a26a0b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 May 2025 10:39:23 +0100 Subject: Modernize some bits of Command. --- include/commands.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/commands.h b/include/commands.h index c4c7df663..d9f15296a 100644 --- a/include/commands.h +++ b/include/commands.h @@ -99,9 +99,9 @@ class CoreExport Command Anope::string desc; std::vector>> syntax; /* Allow unregistered users to use this command */ - bool allow_unregistered; + bool allow_unregistered = false; /* Command requires that a user is executing it */ - bool require_user; + bool require_user = false; public: /* Maximum parameters accepted by this command */ @@ -136,8 +136,8 @@ protected: void RequireUser(bool b); public: - bool AllowUnregistered() const; - bool RequireUser() const; + inline bool AllowUnregistered() const { return this->allow_unregistered; } + inline bool RequireUser() const { return this->require_user; } /** Get the command description * @param source The source wanting the command description -- cgit