diff options
| author | 2026-03-08 17:01:22 +0000 | |
|---|---|---|
| committer | 2026-03-08 17:47:44 +0000 | |
| commit | bb1e5a7b60ea200ddae99f263a38a219879f9617 (patch) | |
| tree | a5cecddf75a3458447d09ca1fa2f859c4486ddec /modules/silence.cpp | |
| parent | Remove 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.cpp | 4 |
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()) |
