aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_anticaps.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_anticaps.cpp
parentFix some warnings noticed by the bugprone-* clang-tidy checkers. (diff)
downloadinspircd++-9203f40f41e4a735d379d13867d277c696fb28c5.tar.gz
inspircd++-9203f40f41e4a735d379d13867d277c696fb28c5.tar.bz2
inspircd++-9203f40f41e4a735d379d13867d277c696fb28c5.zip
Fix some warnings noticed by the readability-* clang-tidy checkers.
Diffstat (limited to 'src/modules/m_anticaps.cpp')
-rw-r--r--src/modules/m_anticaps.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp
index e9bd3d45e..beb29f2ec 100644
--- a/src/modules/m_anticaps.cpp
+++ b/src/modules/m_anticaps.cpp
@@ -52,7 +52,7 @@ class AntiCapsMode final
: public ParamMode<AntiCapsMode, SimpleExtItem<AntiCapsSettings>>
{
private:
- bool ParseMethod(irc::sepstream& stream, AntiCapsMethod& method)
+ static bool ParseMethod(irc::sepstream& stream, AntiCapsMethod& method)
{
std::string methodstr;
if (!stream.GetToken(methodstr))
@@ -74,7 +74,7 @@ private:
return true;
}
- bool ParseMinimumLength(irc::sepstream& stream, uint16_t& minlen)
+ static bool ParseMinimumLength(irc::sepstream& stream, uint16_t& minlen)
{
std::string minlenstr;
if (!stream.GetToken(minlenstr))
@@ -88,7 +88,7 @@ private:
return true;
}
- bool ParsePercent(irc::sepstream& stream, uint8_t& percent)
+ static bool ParsePercent(irc::sepstream& stream, uint8_t& percent)
{
std::string percentstr;
if (!stream.GetToken(percentstr))
@@ -176,7 +176,7 @@ private:
ServerInstance->Modes.Process(ServerInstance->FakeClient, channel, nullptr, changelist);
}
- void InformUser(Channel* channel, User* user, const std::string& message)
+ static void InformUser(Channel* channel, User* user, const std::string& message)
{
user->WriteNumeric(Numerics::CannotSendTo(channel, message + " and was blocked."));
}