diff options
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()) |
