aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-04 23:42:15 +0100
committerGravatar Sadie Powell2021-04-04 23:42:15 +0100
commit7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch)
treef5a81d03f572392e7547d58f979fdd488de6ff0b /src/modules/m_httpd_stats.cpp
parentRemove the unused ExitCodes array. (diff)
downloadinspircd++-7d84e4900fa8f4ef96e8cf4bb67b76be7902e840.tar.gz
inspircd++-7d84e4900fa8f4ef96e8cf4bb67b76be7902e840.tar.bz2
inspircd++-7d84e4900fa8f4ef96e8cf4bb67b76be7902e840.zip
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index c18c8c960..41e592f7f 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -320,17 +320,14 @@ namespace Stats
bool operator()(User* u1, User* u2)
{
- switch (order) {
+ switch (order)
+ {
case OB_LASTMSG:
return Compare(IS_LOCAL(u1)->idle_lastmsg, IS_LOCAL(u2)->idle_lastmsg);
- break;
case OB_NICK:
return Compare(u1->nick, u2->nick);
- break;
- default:
case OB_NONE:
return false;
- break;
}
}
};