summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-12-17 14:33:44 +0000
committerSadie Powell <sadie@witchery.services>2023-12-17 14:33:44 +0000
commitcb533b63ac57bd70bf38d4a13ef03517fada5468 (patch)
tree1702738864ffa844ca970bd5008176f4b07b5fdc
parent6538641e8703084460df70d04196ac271eff1266 (diff)
parent8e2fa4acdbc24d0a629b737d5dd42a31a543016d (diff)
Merge branch '2.0' into 2.1.
-rw-r--r--data/modules.example.conf1
-rw-r--r--src/messages.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/data/modules.example.conf b/data/modules.example.conf
index 6076c254a..6630bc750 100644
--- a/data/modules.example.conf
+++ b/data/modules.example.conf
@@ -405,6 +405,7 @@ module { name = "help" }
*
* Provides the regex engine regex/pcre, which uses version 2 of the Perl Compatible Regular
* Expressions library.
+ */
#module { name = "m_regex_pcre2" }
/*
diff --git a/src/messages.cpp b/src/messages.cpp
index 2aaae177f..667251a3f 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -440,8 +440,8 @@ void Stats::Run(MessageSource &source, const std::vector<Anope::string> &params,
case 'u':
{
long uptime = static_cast<long>(Anope::CurTime - Anope::StartTime);
- IRCD->SendNumeric(242, source.GetSource(), ":Services up %d day%s, %02d:%02d:%02d", uptime / 86400, uptime / 86400 == 1 ? "" : "s", (uptime / 3600) % 24, (uptime / 60) % 60, uptime % 60);
- IRCD->SendNumeric(250, source.GetSource(), ":Current users: %d (%d ops); maximum %d", UserListByNick.size(), OperCount, MaxUserCount);
+ IRCD->SendNumeric(242, source.GetSource(), ":Services up %ld day%s, %02ld:%02ld:%02ld", uptime / 86400, uptime / 86400 == 1 ? "" : "s", (uptime / 3600) % 24, (uptime / 60) % 60, uptime % 60);
+ IRCD->SendNumeric(250, source.GetSource(), ":Current users: %zu (%d ops); maximum %u", UserListByNick.size(), OperCount, MaxUserCount);
IRCD->SendNumeric(219, source.GetSource(), "%c :End of /STATS report.", params[0][0]);
break;
} /* case 'u' */