aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-08-04 13:09:06 +0100
committerGravatar Sadie Powell2023-08-04 13:14:49 +0100
commit635feb1a9a3ece8f06e1ad620b7b5a1eb21f8a44 (patch)
treead84709d188e70bf3e8aab74d85c59e40a711e12 /src/modules/m_httpd_stats.cpp
parentFix an inverted condition in the DNSBL module. (diff)
downloadinspircd++-635feb1a9a3ece8f06e1ad620b7b5a1eb21f8a44.tar.gz
inspircd++-635feb1a9a3ece8f06e1ad620b7b5a1eb21f8a44.tar.bz2
inspircd++-635feb1a9a3ece8f06e1ad620b7b5a1eb21f8a44.zip
Rework how away state is stored internally.
This will be necessary for implementing pre-away as well as some changes for WATCH compatibility with Unreal.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index 0ca0f5987..5733cc9e3 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -270,8 +270,8 @@ namespace Stats
if (u->IsAway())
{
- serializer.Attribute("away", u->awaymsg)
- .Attribute("awaytime", u->awaytime);
+ serializer.Attribute("away", u->away->message)
+ .Attribute("awaytime", u->away->time);
}
if (u->IsOper())