From d45fe55f0e469ee5c821f97f79ae19da57f455a8 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 17 Apr 2022 14:57:41 +0100 Subject: Constify the parameter arguments in ListModeBase's Tell* methods. --- src/listmode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/listmode.cpp') 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())); } -- cgit v1.3.1-10-gc9f91