aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-11 00:45:04 +0000
committerGravatar Sadie Powell2023-01-11 00:56:15 +0000
commitc3e42d4e5db872e8ef408263da74375ff1ff7f82 (patch)
tree11cd74fa4230b60fa8ba3d4c9e72f18be9c3d12c /src
parentFix calling various static functions through a type instance. (diff)
Make some functions that don't use `this` static.
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_info/core_info.cpp2
-rw-r--r--src/coremods/core_info/core_info.h2
-rw-r--r--src/modules/m_spanningtree/opertype.cpp4
-rw-r--r--src/usermanager.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/coremods/core_info/core_info.cpp b/src/coremods/core_info/core_info.cpp
index f49804340..9e5ac5c57 100644
--- a/src/coremods/core_info/core_info.cpp
+++ b/src/coremods/core_info/core_info.cpp
@@ -194,7 +194,7 @@ public:
ServerInstance->Parser.CallHandler(command, parameters, user);
if (ServerInstance->Config->RawLog)
- ServerInstance->Logs.NotifyRawIO(user, MSG_PRIVMSG);
+ Log::Manager::NotifyRawIO(user, MSG_PRIVMSG);
}
void OnLoadModule(Module* mod) override
diff --git a/src/coremods/core_info/core_info.h b/src/coremods/core_info/core_info.h
index 1025b7fc6..db4614098 100644
--- a/src/coremods/core_info/core_info.h
+++ b/src/coremods/core_info/core_info.h
@@ -48,7 +48,7 @@ private:
* @param tokens The tokens to build from.
* @param numerics The location to store the built numeric lists.
*/
- void BuildNumerics(ISupport::TokenMap& tokens, std::vector<Numeric::Numeric>& numerics);
+ static void BuildNumerics(ISupport::TokenMap& tokens, std::vector<Numeric::Numeric>& numerics);
public:
ISupportManager(Module* mod);
diff --git a/src/modules/m_spanningtree/opertype.cpp b/src/modules/m_spanningtree/opertype.cpp
index f5cacc0df..792245669 100644
--- a/src/modules/m_spanningtree/opertype.cpp
+++ b/src/modules/m_spanningtree/opertype.cpp
@@ -31,7 +31,7 @@ class RemoteOperAccount final
: public OperAccount
{
private:
- void ReadModes(ModeParser::ModeStatus& modes, const ClientProtocol::TagMap& tags, const std::string& tag)
+ static void ReadModes(ModeParser::ModeStatus& modes, const ClientProtocol::TagMap& tags, const std::string& tag)
{
auto it = tags.find(tag);
if (it != tags.end())
@@ -49,7 +49,7 @@ private:
modes.set();
}
- void ReadTokens(TokenList& tokens, const ClientProtocol::TagMap& tags, const std::string& tag)
+ static void ReadTokens(TokenList& tokens, const ClientProtocol::TagMap& tags, const std::string& tag)
{
auto it = tags.find(tag);
if (it != tags.end())
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index eeaa5ab44..53b6a0bef 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -219,7 +219,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, const irc::sockets::soc
}
if (ServerInstance->Config->RawLog)
- ServerInstance->Logs.NotifyRawIO(New, MSG_NOTICE);
+ Log::Manager::NotifyRawIO(New, MSG_NOTICE);
FOREACH_MOD(OnChangeRemoteAddress, (New));
if (!New->quitting)