From bb1e5a7b60ea200ddae99f263a38a219879f9617 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 8 Mar 2026 17:01:22 +0000 Subject: Replace IS_* with member functions. - All user types get an Is* function. - Only local users are cast using the old function so only local users get an As* function. --- modules/disable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/disable.cpp') diff --git a/modules/disable.cpp b/modules/disable.cpp index a3555260b..c18283fc9 100644 --- a/modules/disable.cpp +++ b/modules/disable.cpp @@ -157,7 +157,7 @@ public: if (numeric.GetNumeric() != RPL_COMMANDS || numeric.GetParams().empty()) return MOD_RES_PASSTHRU; // The numeric isn't the one we care about. - if (!fakenonexistent || !IS_LOCAL(user)) + if (!fakenonexistent || !user->IsLocal()) return MOD_RES_PASSTHRU; // We're not hiding the numeric OR the user is remote. if (!stdalgo::isin(commands, numeric.GetParams()[0]) || user->HasPrivPermission("servers/use-disabled-commands")) @@ -197,7 +197,7 @@ public: ModResult OnRawMode(User* user, Channel* chan, const Modes::Change& change) override { // If a mode change is remote or the source is not fully connected we do nothing. - if (!IS_LOCAL(user) || !user->IsFullyConnected()) + if (!user->IsLocal() || !user->IsFullyConnected()) return MOD_RES_PASSTHRU; // If the mode is not disabled or the user has the servers/use-disabled-modes priv we do nothing. -- cgit v1.3.1-10-gc9f91