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/ircv3_labeledresponse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ircv3_labeledresponse.cpp') diff --git a/modules/ircv3_labeledresponse.cpp b/modules/ircv3_labeledresponse.cpp index 317e823a1..7e0729c60 100644 --- a/modules/ircv3_labeledresponse.cpp +++ b/modules/ircv3_labeledresponse.cpp @@ -50,7 +50,7 @@ public: // If the user is local then we check whether they have the labeled-response // cap enabled. If not then we reject the label tag originating from them. - LocalUser* lu = IS_LOCAL(user); + auto* lu = user->AsLocal(); if (lu && !cap.IsEnabled(lu)) return MOD_RES_DENY; -- cgit v1.3.1-10-gc9f91