1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 21:56:37 +02:00

Make functions that don't use this static.

This commit is contained in:
Sadie Powell
2024-02-27 10:40:23 +00:00
parent 73d4ac6de0
commit b5b3c74477
35 changed files with 61 additions and 61 deletions
+2 -2
View File
@@ -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);