aboutsummaryrefslogtreecommitdiff
path: root/src/listmode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-04-17 14:57:41 +0100
committerGravatar Sadie Powell2022-04-17 14:57:41 +0100
commitd45fe55f0e469ee5c821f97f79ae19da57f455a8 (patch)
treea5951192202eec5c21a6fb2d157cbe9ea1f31ed6 /src/listmode.cpp
parentFix a missing doxygen comment. (diff)
Constify the parameter arguments in ListModeBase's Tell* methods.
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r--src/listmode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp
index dd04857ca..10b66f8e0 100644
--- a/src/listmode.cpp
+++ b/src/listmode.cpp
@@ -223,17 +223,17 @@ void ListModeBase::OnParameterMissing(User* source, User* dest, Channel* channel
// Intentionally left blank.
}
-void ListModeBase::TellListTooLong(LocalUser* source, Channel* channel, std::string& parameter)
+void ListModeBase::TellListTooLong(LocalUser* source, Channel* channel, const std::string& parameter)
{
source->WriteNumeric(ERR_BANLISTFULL, channel->name, parameter, mode, InspIRCd::Format("Channel %s list is full", name.c_str()));
}
-void ListModeBase::TellAlreadyOnList(LocalUser* source, Channel* channel, std::string& parameter)
+void ListModeBase::TellAlreadyOnList(LocalUser* source, Channel* channel, const std::string& parameter)
{
source->WriteNumeric(ERR_LISTMODEALREADYSET, channel->name, parameter, mode, InspIRCd::Format("Channel %s list already contains %s", name.c_str(), parameter.c_str()));
}
-void ListModeBase::TellNotSet(LocalUser* source, Channel* channel, std::string& parameter)
+void ListModeBase::TellNotSet(LocalUser* source, Channel* channel, const std::string& parameter)
{
source->WriteNumeric(ERR_LISTMODENOTSET, channel->name, parameter, mode, InspIRCd::Format("Channel %s list does not contain %s", name.c_str(), parameter.c_str()));
}