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/chanstats.cpp | |
parent | 73d4ac6de04a1035ac36182d3f269cc938c6bc19 (diff) |
Make functions that don't use `this` static.
Diffstat (limited to 'modules/chanstats.cpp')
-rw-r--r-- | modules/chanstats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/chanstats.cpp b/modules/chanstats.cpp index b2887dfd5..81c826739 100644 --- a/modules/chanstats.cpp +++ b/modules/chanstats.cpp @@ -189,14 +189,14 @@ class MChanstats final sql->Run(&sqlinterface, q); } - size_t CountWords(const Anope::string &msg) + static size_t CountWords(const Anope::string &msg) { size_t words = 0; for (size_t pos = 0; pos != Anope::string::npos; pos = msg.find(" ", pos+1)) words++; return words; } - size_t CountSmileys(const Anope::string &msg, const Anope::string &smileylist) + static size_t CountSmileys(const Anope::string &msg, const Anope::string &smileylist) { size_t smileys = 0; spacesepstream sep(smileylist); |