diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-27 10:40:23 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-27 10:48:55 +0000 |
| commit | b5b3c744778ed0cbceb03f2f8dbbec33d2fd0e94 (patch) | |
| tree | e6d8a7c143a11035be55ffffcdc97395eb5b4e25 /modules/chanserv/cs_clone.cpp | |
| parent | 73d4ac6de04a1035ac36182d3f269cc938c6bc19 (diff) | |
Make functions that don't use `this` static.
Diffstat (limited to 'modules/chanserv/cs_clone.cpp')
| -rw-r--r-- | modules/chanserv/cs_clone.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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()) { |
