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/uninvite.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/uninvite.cpp') diff --git a/modules/uninvite.cpp b/modules/uninvite.cpp index 2d9eed36b..2af6c9980 100644 --- a/modules/uninvite.cpp +++ b/modules/uninvite.cpp @@ -49,7 +49,7 @@ public: CmdResult Handle(User* user, const Params& parameters) override { User* u; - if (IS_LOCAL(user)) + if (user->IsLocal()) u = ServerInstance->Users.FindNick(parameters[0], true); else u = ServerInstance->Users.Find(parameters[0]); @@ -70,7 +70,7 @@ public: return CmdResult::FAILURE; } - if (IS_LOCAL(user)) + if (user->IsLocal()) { if (c->GetPrefixValue(user) < HALFOP_VALUE) { @@ -83,7 +83,7 @@ public: * only if the target is local. Otherwise the command will be * passed to the target users server. */ - LocalUser* lu = IS_LOCAL(u); + auto* lu = u->AsLocal(); if (lu) { // XXX: The source of the numeric we send must be the server of the user doing the /UNINVITE, -- cgit v1.3.1-10-gc9f91