From db5610a5640749ab7dafab82c1ef1553f3d78615 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 9 Dec 2018 06:43:55 +0000 Subject: Use consistent numerics when a mode already exists or doesn't exist. --- src/listmode.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/listmode.cpp') diff --git a/src/listmode.cpp b/src/listmode.cpp index 78908a727..61fadcade 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -223,6 +223,7 @@ bool ListModeBase::ValidateParam(User*, Channel*, std::string&) void ListModeBase::OnParameterMissing(User*, User*, Channel*) { + // Intentionally left blank. } void ListModeBase::TellListTooLong(User* source, Channel* channel, std::string& parameter) @@ -230,10 +231,12 @@ void ListModeBase::TellListTooLong(User* source, Channel* channel, std::string& source->WriteNumeric(ERR_BANLISTFULL, channel->name, parameter, mode, InspIRCd::Format("Channel %s list is full", name.c_str())); } -void ListModeBase::TellAlreadyOnList(User*, Channel*, std::string&) +void ListModeBase::TellAlreadyOnList(User* source, Channel* channel, 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(User*, Channel*, std::string&) +void ListModeBase::TellNotSet(User* source, Channel* channel, 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