aboutsummaryrefslogtreecommitdiff
path: root/modules/silence.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-08 17:01:22 +0000
committerGravatar Sadie Powell2026-03-08 17:47:44 +0000
commitbb1e5a7b60ea200ddae99f263a38a219879f9617 (patch)
treea5cecddf75a3458447d09ca1fa2f859c4486ddec /modules/silence.cpp
parentRemove the unused remote user finding methods. (diff)
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.
Diffstat (limited to 'modules/silence.cpp')
-rw-r--r--modules/silence.cpp4
1 files changed, 2 insertions, 2 deletions
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<User*>(container));
+ auto* user = static_cast<User*>(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())