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/silence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/silence.cpp') diff --git a/modules/silence.cpp b/modules/silence.cpp index 3584dcc08..6e0b4af73 100644 --- a/modules/silence.cpp +++ b/modules/silence.cpp @@ -218,7 +218,7 @@ public: if (container->extype != this->extype) return; - LocalUser* user = IS_LOCAL(static_cast(container)); + auto* user = static_cast(container)->AsLocal(); if (!user) return; @@ -460,7 +460,7 @@ private: bool CanReceiveMessage(User* source, User* target, SilenceEntry::SilenceFlags flag, uint32_t* flags = nullptr) { // Servers handle their own clients. - if (!IS_LOCAL(target)) + if (!target->IsLocal()) return true; if (exemptservice && source->server->IsService()) -- cgit v1.3.1-10-gc9f91