diff options
| author | 2026-03-08 17:01:22 +0000 | |
|---|---|---|
| committer | 2026-03-08 17:47:44 +0000 | |
| commit | bb1e5a7b60ea200ddae99f263a38a219879f9617 (patch) | |
| tree | a5cecddf75a3458447d09ca1fa2f859c4486ddec /modules/hostcycle.cpp | |
| parent | Remove the unused remote user finding methods. (diff) | |
| download | inspircd++-bb1e5a7b60ea200ddae99f263a38a219879f9617.tar.gz inspircd++-bb1e5a7b60ea200ddae99f263a38a219879f9617.tar.bz2 inspircd++-bb1e5a7b60ea200ddae99f263a38a219879f9617.zip | |
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/hostcycle.cpp')
| -rw-r--r-- | modules/hostcycle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hostcycle.cpp b/modules/hostcycle.cpp index 1b9408a83..d9af979f4 100644 --- a/modules/hostcycle.cpp +++ b/modules/hostcycle.cpp @@ -48,7 +48,7 @@ class ModuleHostCycle final exceptions.erase(user); for (const auto& [exception, sendto] : exceptions) { - LocalUser* u = IS_LOCAL(exception); + auto* u = exception->AsLocal(); if ((u) && (!u->quitting) && (!chghostcap.IsEnabled(u))) { if (sendto) @@ -72,7 +72,7 @@ class ModuleHostCycle final for (const auto& [chanuser, _] : c->GetUsers()) { - LocalUser* u = IS_LOCAL(chanuser); + auto* u = chanuser->AsLocal(); if (!u || u == user) continue; if (u->already_sent == silent_id) |
