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/setident.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/setident.cpp') diff --git a/modules/setident.cpp b/modules/setident.cpp index 89fe6d892..dc27ae621 100644 --- a/modules/setident.cpp +++ b/modules/setident.cpp @@ -46,7 +46,7 @@ public: if (parameters.size() > 1) { const auto& targetnick = parameters[0]; - if (IS_LOCAL(user)) + if (user->IsLocal()) { // For local users we need to check if they can use the command. target = ServerInstance->Users.FindNick(targetnick, true); @@ -69,7 +69,7 @@ public: } } - if (!IS_LOCAL(target)) + if (!target->IsLocal()) return CmdResult::SUCCESS; // Their server will handle this. const auto& newuser = parameters.back(); -- cgit v1.3.1-10-gc9f91