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/hostcycle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/hostcycle.cpp') diff --git a/modules/hostcycle.cpp b/modules/hostcycle.cpp index 1b9408a83..d9af979f4 100644 --- a/modules/hostcycle.cpp +++ b/modules/hostcycle.cpp @@ -48,7 +48,7 @@ class ModuleHostCycle final exceptions.erase(user); for (const auto& [exception, sendto] : exceptions) { - LocalUser* u = IS_LOCAL(exception); + auto* u = exception->AsLocal(); if ((u) && (!u->quitting) && (!chghostcap.IsEnabled(u))) { if (sendto) @@ -72,7 +72,7 @@ class ModuleHostCycle final for (const auto& [chanuser, _] : c->GetUsers()) { - LocalUser* u = IS_LOCAL(chanuser); + auto* u = chanuser->AsLocal(); if (!u || u == user) continue; if (u->already_sent == silent_id) -- cgit v1.3.1-10-gc9f91