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/nickserv | |
| parent | 73d4ac6de04a1035ac36182d3f269cc938c6bc19 (diff) | |
Make functions that don't use `this` static.
Diffstat (limited to 'modules/nickserv')
| -rw-r--r-- | modules/nickserv/ns_access.cpp | 2 | ||||
| -rw-r--r-- | modules/nickserv/ns_ajoin.cpp | 2 | ||||
| -rw-r--r-- | modules/nickserv/ns_cert.cpp | 2 | ||||
| -rw-r--r-- | modules/nickserv/ns_maxemail.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/nickserv/ns_access.cpp b/modules/nickserv/ns_access.cpp index 1e0c99ce4..c8d391751 100644 --- a/modules/nickserv/ns_access.cpp +++ b/modules/nickserv/ns_access.cpp @@ -75,7 +75,7 @@ private: return; } - void DoList(CommandSource &source, NickCore *nc, const Anope::string &mask) + static void DoList(CommandSource &source, NickCore *nc, const Anope::string &mask) { unsigned i, end; diff --git a/modules/nickserv/ns_ajoin.cpp b/modules/nickserv/ns_ajoin.cpp index a21f66fd0..f6e716a36 100644 --- a/modules/nickserv/ns_ajoin.cpp +++ b/modules/nickserv/ns_ajoin.cpp @@ -91,7 +91,7 @@ AJoinList::~AJoinList() class CommandNSAJoin final : public Command { - void DoList(CommandSource &source, NickCore *nc) + static void DoList(CommandSource &source, NickCore *nc) { AJoinList *channels = nc->Require<AJoinList>("ajoinlist"); diff --git a/modules/nickserv/ns_cert.cpp b/modules/nickserv/ns_cert.cpp index 4f1b4ba57..88ff1ecaa 100644 --- a/modules/nickserv/ns_cert.cpp +++ b/modules/nickserv/ns_cert.cpp @@ -250,7 +250,7 @@ private: source.Reply(_("\002%s\002 deleted from %s's certificate list."), certfp.c_str(), nc->display.c_str()); } - void DoList(CommandSource &source, const NickCore *nc) + static void DoList(CommandSource &source, const NickCore *nc) { NSCertList *cl = nc->GetExt<NSCertList>("certificates"); diff --git a/modules/nickserv/ns_maxemail.cpp b/modules/nickserv/ns_maxemail.cpp index 135381a59..342ba3c3d 100644 --- a/modules/nickserv/ns_maxemail.cpp +++ b/modules/nickserv/ns_maxemail.cpp @@ -18,7 +18,7 @@ class NSMaxEmail final bool clean = false; /* strip dots from username, and remove anything after the first + */ - Anope::string CleanMail(const Anope::string &email) + static Anope::string CleanMail(const Anope::string &email) { size_t host = email.find('@'); if (host == Anope::string::npos) |
