aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_globalload.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-03 22:52:53 +0100
committerGravatar Sadie Powell2022-09-03 23:17:05 +0100
commit9203f40f41e4a735d379d13867d277c696fb28c5 (patch)
tree93a171344e801b44918229fdd6b8778293ab88aa /src/modules/m_globalload.cpp
parentFix some warnings noticed by the bugprone-* clang-tidy checkers. (diff)
Fix some warnings noticed by the readability-* clang-tidy checkers.
Diffstat (limited to 'src/modules/m_globalload.cpp')
-rw-r--r--src/modules/m_globalload.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index 6e9a0f861..e1f5e7292 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -42,9 +42,9 @@ public:
{
std::string servername = parameters.size() > 1 ? parameters[1] : "*";
- if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
+ if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
{
- if (ServerInstance->Modules.Load(parameters[0].c_str()))
+ if (ServerInstance->Modules.Load(parameters[0]))
{
ServerInstance->SNO.WriteToSnoMask('a', "NEW MODULE '%s' GLOBALLY LOADED BY '%s'",parameters[0].c_str(), user->nick.c_str());
user->WriteRemoteNumeric(RPL_LOADEDMODULE, parameters[0], "Module successfully loaded.");
@@ -88,7 +88,7 @@ public:
std::string servername = parameters.size() > 1 ? parameters[1] : "*";
- if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
+ if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
{
Module* m = ServerInstance->Modules.Find(parameters[0]);
if (m)
@@ -134,7 +134,7 @@ public:
{
std::string servername = parameters.size() > 1 ? parameters[1] : "*";
- if (InspIRCd::Match(ServerInstance->Config->ServerName.c_str(), servername))
+ if (InspIRCd::Match(ServerInstance->Config->ServerName, servername))
{
Module* m = ServerInstance->Modules.Find(parameters[0]);
if (m)