mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Constify the parameter arguments in ListModeBase's Tell* methods.
This commit is contained in:
parent
b6c77b3e01
commit
d45fe55f0e
@ -167,7 +167,7 @@ public:
|
||||
* @param channel Channel the parameter is being added to
|
||||
* @param parameter The actual parameter being added
|
||||
*/
|
||||
virtual void TellListTooLong(LocalUser* source, Channel* channel, std::string& parameter);
|
||||
virtual void TellListTooLong(LocalUser* source, Channel* channel, const std::string& parameter);
|
||||
|
||||
/** Tell the user an item is already on the list.
|
||||
* Overridden by implementing module.
|
||||
@ -175,7 +175,7 @@ public:
|
||||
* @param channel Channel the parameter is being added to
|
||||
* @param parameter The actual parameter being added
|
||||
*/
|
||||
virtual void TellAlreadyOnList(LocalUser* source, Channel* channel, std::string& parameter);
|
||||
virtual void TellAlreadyOnList(LocalUser* source, Channel* channel, const std::string& parameter);
|
||||
|
||||
/** Tell the user that the parameter is not in the list.
|
||||
* Overridden by implementing module.
|
||||
@ -183,7 +183,7 @@ public:
|
||||
* @param channel Channel the parameter is being removed from
|
||||
* @param parameter The actual parameter being removed
|
||||
*/
|
||||
virtual void TellNotSet(LocalUser* source, Channel* channel, std::string& parameter);
|
||||
virtual void TellNotSet(LocalUser* source, Channel* channel, const std::string& parameter);
|
||||
};
|
||||
|
||||
inline ListModeBase::ModeList* ListModeBase::GetList(Channel* channel)
|
||||
|
@ -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()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user