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/check.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/check.cpp') diff --git a/modules/check.cpp b/modules/check.cpp index ba9cd8b8e..4935b5376 100644 --- a/modules/check.cpp +++ b/modules/check.cpp @@ -109,7 +109,7 @@ public: { public: List(CheckContext& context, const char* checktype) - : Numeric::GenericBuilder<' ', false, Numeric::WriteRemoteNumericSink>(Numeric::WriteRemoteNumericSink(context.GetUser()), RPL_CHECK, false, (IS_LOCAL(context.GetUser()) ? context.GetUser()->nick.length() : ServerInstance->Config->Limits.MaxNick) + strlen(checktype) + 1) + : Numeric::GenericBuilder<' ', false, Numeric::WriteRemoteNumericSink>(Numeric::WriteRemoteNumericSink(context.GetUser()), RPL_CHECK, false, (context.GetUser()->IsLocal() ? context.GetUser()->nick.length() : ServerInstance->Config->Limits.MaxNick) + strlen(checktype) + 1) { GetNumeric().push(checktype).push(std::string()); } @@ -164,7 +164,7 @@ public: if (targetuser) { - LocalUser* localtarget = IS_LOCAL(targetuser); + auto* localtarget = targetuser->AsLocal(); /* /check on a user */ context.Write("nuh", targetuser->GetMask()); context.Write("realnuh", targetuser->GetRealMask()); -- cgit v1.3.1-10-gc9f91