diff options
Diffstat (limited to 'modules/chanserv')
| -rw-r--r-- | modules/chanserv/cs_access.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_clone.cpp | 10 | ||||
| -rw-r--r-- | modules/chanserv/cs_entrymsg.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_flags.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_mode.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_seen.cpp | 4 | ||||
| -rw-r--r-- | modules/chanserv/cs_updown.cpp | 4 |
7 files changed, 13 insertions, 13 deletions
diff --git a/modules/chanserv/cs_access.cpp b/modules/chanserv/cs_access.cpp index 047ff4ec1..3d2c3c8d6 100644 --- a/modules/chanserv/cs_access.cpp +++ b/modules/chanserv/cs_access.cpp @@ -713,7 +713,7 @@ class CommandCSLevels final source.Reply(_("Setting \002%s\002 not known. Type \002%s%s HELP LEVELS\002 for a list of valid settings."), what.c_str(), Config->StrictPrivmsg.c_str(), source.service->nick.c_str()); } - void DoList(CommandSource &source, ChannelInfo *ci) + static void DoList(CommandSource &source, ChannelInfo *ci) { source.Reply(_("Access level settings for channel %s:"), ci->name.c_str()); diff --git a/modules/chanserv/cs_clone.cpp b/modules/chanserv/cs_clone.cpp index 79db9fd57..5b088154d 100644 --- a/modules/chanserv/cs_clone.cpp +++ b/modules/chanserv/cs_clone.cpp @@ -15,13 +15,13 @@ class CommandCSClone final : public Command { - void CopySetting(ChannelInfo *ci, ChannelInfo *target_ci, const Anope::string &setting) + static void CopySetting(ChannelInfo *ci, ChannelInfo *target_ci, const Anope::string &setting) { if (ci->HasExt(setting)) target_ci->Extend<bool>(setting); } - void CopyAccess(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) + static void CopyAccess(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) { std::set<Anope::string> masks; unsigned access_max = Config->GetModule("chanserv")->Get<unsigned>("accessmax", "1024"); @@ -58,7 +58,7 @@ class CommandCSClone final source.Reply(_("%d access entries from \002%s\002 have been cloned to \002%s\002."), count, ci->name.c_str(), target_ci->name.c_str()); } - void CopyAkick(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) + static void CopyAkick(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) { target_ci->ClearAkick(); for (unsigned i = 0; i < ci->GetAkickCount(); ++i) @@ -73,7 +73,7 @@ class CommandCSClone final source.Reply(_("All akick entries from \002%s\002 have been cloned to \002%s\002."), ci->name.c_str(), target_ci->name.c_str()); } - void CopyBadwords(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) + static void CopyBadwords(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) { BadWords *target_badwords = target_ci->Require<BadWords>("badwords"), *badwords = ci->Require<BadWords>("badwords"); @@ -98,7 +98,7 @@ class CommandCSClone final source.Reply(_("All badword entries from \002%s\002 have been cloned to \002%s\002."), ci->name.c_str(), target_ci->name.c_str()); } - void CopyLevels(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) + static void CopyLevels(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) { for (const auto &[priv, level] : ci->GetLevelEntries()) { diff --git a/modules/chanserv/cs_entrymsg.cpp b/modules/chanserv/cs_entrymsg.cpp index df1f04581..03e4b22de 100644 --- a/modules/chanserv/cs_entrymsg.cpp +++ b/modules/chanserv/cs_entrymsg.cpp @@ -104,7 +104,7 @@ class CommandEntryMessage final : public Command { private: - void DoList(CommandSource &source, ChannelInfo *ci) + static void DoList(CommandSource &source, ChannelInfo *ci) { EntryMessageList *messages = ci->Require<EntryMessageList>("entrymsg"); diff --git a/modules/chanserv/cs_flags.cpp b/modules/chanserv/cs_flags.cpp index 0c1e088da..b1cb02edd 100644 --- a/modules/chanserv/cs_flags.cpp +++ b/modules/chanserv/cs_flags.cpp @@ -294,7 +294,7 @@ class CommandCSFlags final source.Reply(_("Flags for \002%s\002 on %s set to +\002%s\002"), access->Mask().c_str(), ci->name.c_str(), access->AccessSerialize().c_str()); } - void DoList(CommandSource &source, ChannelInfo *ci, const std::vector<Anope::string> ¶ms) + static void DoList(CommandSource &source, ChannelInfo *ci, const std::vector<Anope::string> ¶ms) { const Anope::string &arg = params.size() > 2 ? params[2] : ""; diff --git a/modules/chanserv/cs_mode.cpp b/modules/chanserv/cs_mode.cpp index 3aa8e709d..631196c7a 100644 --- a/modules/chanserv/cs_mode.cpp +++ b/modules/chanserv/cs_mode.cpp @@ -247,7 +247,7 @@ Serializable *ModeLockImpl::Unserialize(Serializable *obj, Serialize::Data &data class CommandCSMode final : public Command { - bool CanSet(CommandSource &source, ChannelInfo *ci, ChannelMode *cm, bool self) + static bool CanSet(CommandSource &source, ChannelInfo *ci, ChannelMode *cm, bool self) { if (!ci || !cm || cm->type != MODE_STATUS) return false; diff --git a/modules/chanserv/cs_seen.cpp b/modules/chanserv/cs_seen.cpp index ff57949c4..e18434d3e 100644 --- a/modules/chanserv/cs_seen.cpp +++ b/modules/chanserv/cs_seen.cpp @@ -185,7 +185,7 @@ public: class CommandSeen final : public Command { - void SimpleSeen(CommandSource &source, const std::vector<Anope::string> ¶ms) + static void SimpleSeen(CommandSource &source, const std::vector<Anope::string> ¶ms) { if (!source.c || !source.c->ci) { @@ -440,7 +440,7 @@ public: } private: - void UpdateUser(const User *u, const TypeInfo Type, const Anope::string &nick, const Anope::string &nick2, const Anope::string &channel, const Anope::string &message) + static void UpdateUser(const User *u, const TypeInfo Type, const Anope::string &nick, const Anope::string &nick2, const Anope::string &channel, const Anope::string &message) { if (simple || !u->server->IsSynced()) return; diff --git a/modules/chanserv/cs_updown.cpp b/modules/chanserv/cs_updown.cpp index 24242a0c3..76db3452a 100644 --- a/modules/chanserv/cs_updown.cpp +++ b/modules/chanserv/cs_updown.cpp @@ -14,7 +14,7 @@ class CommandCSUp final : public Command { - void SetModes(User *u, Channel *c) + static void SetModes(User *u, Channel *c) { if (!c->ci) return; @@ -133,7 +133,7 @@ public: class CommandCSDown final : public Command { - void RemoveAll(User *u, Channel *c) + static void RemoveAll(User *u, Channel *c) { ChanUserContainer *cu = c->FindUser(u); if (cu != NULL) |
