aboutsummaryrefslogtreecommitdiffstats
path: root/modules/httpd_stats.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/httpd_stats.cpp
parentRemove the unused remote user finding methods. (diff)
downloadinspircd++-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/httpd_stats.cpp')
-rw-r--r--modules/httpd_stats.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/httpd_stats.cpp b/modules/httpd_stats.cpp
index 14f586b28..1e5d50f9e 100644
--- a/modules/httpd_stats.cpp
+++ b/modules/httpd_stats.cpp
@@ -276,7 +276,7 @@ namespace Stats
if (u->IsOper())
serializer.Attribute("opertype", u->oper->GetType());
- LocalUser* lu = IS_LOCAL(u);
+ auto* lu = u->AsLocal();
if (lu)
{
serializer.Attribute("port", lu->server_sa.port())
@@ -365,7 +365,7 @@ namespace Stats
switch (order)
{
case OB_LASTMSG:
- return Compare(IS_LOCAL(u1)->idle_lastmsg, IS_LOCAL(u2)->idle_lastmsg);
+ return Compare(u1->AsLocal()->idle_lastmsg, u2->AsLocal()->idle_lastmsg);
case OB_NICK:
return Compare(u1->nick, u2->nick);
default:
@@ -420,7 +420,7 @@ namespace Stats
if (!showunreg && !u->IsFullyConnected())
continue;
- LocalUser* lu = IS_LOCAL(u);
+ auto* lu = u->AsLocal();
if (localonly && !lu)
continue;