diff options
Diffstat (limited to 'modules/operserv')
| -rw-r--r-- | modules/operserv/os_defcon.cpp | 2 | ||||
| -rw-r--r-- | modules/operserv/os_dns.cpp | 4 | ||||
| -rw-r--r-- | modules/operserv/os_ignore.cpp | 4 | ||||
| -rw-r--r-- | modules/operserv/os_oper.cpp | 2 | ||||
| -rw-r--r-- | modules/operserv/os_session.cpp | 4 | ||||
| -rw-r--r-- | modules/operserv/os_stats.cpp | 6 |
6 files changed, 11 insertions, 11 deletions
diff --git a/modules/operserv/os_defcon.cpp b/modules/operserv/os_defcon.cpp index 3bf057877..dbb0edb69 100644 --- a/modules/operserv/os_defcon.cpp +++ b/modules/operserv/os_defcon.cpp @@ -150,7 +150,7 @@ public: class CommandOSDefcon final : public Command { - void SendLevels(CommandSource &source) + static void SendLevels(CommandSource &source) { if (DConfig.Check(DEFCON_NO_NEW_CHANNELS)) source.Reply(_("* No new channel registrations")); diff --git a/modules/operserv/os_dns.cpp b/modules/operserv/os_dns.cpp index b2fb17be2..99d01e7b7 100644 --- a/modules/operserv/os_dns.cpp +++ b/modules/operserv/os_dns.cpp @@ -209,7 +209,7 @@ public: class CommandOSDNS final : public Command { - void DisplayPoolState(CommandSource &source) + static void DisplayPoolState(CommandSource &source) { if (dns_servers->empty()) { @@ -564,7 +564,7 @@ class CommandOSDNS final source.Reply(_("IP %s does not exist for %s."), params[2].c_str(), s->GetName().c_str()); } - void OnSet(CommandSource &source, const std::vector<Anope::string> ¶ms) + static void OnSet(CommandSource &source, const std::vector<Anope::string> ¶ms) { DNSServer *s = DNSServer::Find(params[1]); diff --git a/modules/operserv/os_ignore.cpp b/modules/operserv/os_ignore.cpp index b777158e5..e4cff0d44 100644 --- a/modules/operserv/os_ignore.cpp +++ b/modules/operserv/os_ignore.cpp @@ -161,7 +161,7 @@ class CommandOSIgnore final : public Command { private: - Anope::string RealMask(const Anope::string &mask) + static Anope::string RealMask(const Anope::string &mask) { /* If it s an existing user, we ignore the hostmask. */ User *u = User::Find(mask, true); @@ -245,7 +245,7 @@ private: } } - void DoList(CommandSource &source) + static void DoList(CommandSource &source) { if (!ignore_service) return; diff --git a/modules/operserv/os_oper.cpp b/modules/operserv/os_oper.cpp index 73cd793da..d05650d7c 100644 --- a/modules/operserv/os_oper.cpp +++ b/modules/operserv/os_oper.cpp @@ -51,7 +51,7 @@ struct MyOper final class CommandOSOper final : public Command { - bool HasPrivs(CommandSource &source, OperType *ot) const + static bool HasPrivs(CommandSource &source, OperType *ot) { for (const auto &command : ot->GetCommands()) { diff --git a/modules/operserv/os_session.cpp b/modules/operserv/os_session.cpp index ffa2b3cc9..02695c55a 100644 --- a/modules/operserv/os_session.cpp +++ b/modules/operserv/os_session.cpp @@ -174,7 +174,7 @@ class CommandOSSession final : public Command { private: - void DoList(CommandSource &source, const std::vector<Anope::string> ¶ms) + static void DoList(CommandSource &source, const std::vector<Anope::string> ¶ms) { Anope::string param = params[1]; @@ -216,7 +216,7 @@ private: return; } - void DoView(CommandSource &source, const std::vector<Anope::string> ¶ms) + static void DoView(CommandSource &source, const std::vector<Anope::string> ¶ms) { Anope::string param = params[1]; Session *session = session_service->FindSession(param); diff --git a/modules/operserv/os_stats.cpp b/modules/operserv/os_stats.cpp index fe4cd6f80..52c7cb7dc 100644 --- a/modules/operserv/os_stats.cpp +++ b/modules/operserv/os_stats.cpp @@ -129,14 +129,14 @@ private: } } - void DoStatsReset(CommandSource &source) + static void DoStatsReset(CommandSource &source) { MaxUserCount = UserListByNick.size(); source.Reply(_("Statistics reset.")); return; } - void DoStatsUptime(CommandSource &source) + static void DoStatsUptime(CommandSource &source) { time_t uptime = Anope::CurTime - Anope::StartTime; source.Reply(_("Current users: \002%zu\002 (\002%d\002 ops)"), UserListByNick.size(), OperCount); @@ -146,7 +146,7 @@ private: return; } - void DoStatsUplink(CommandSource &source) + static void DoStatsUplink(CommandSource &source) { Anope::string buf; for (const auto &capab : Servers::Capab) |
