diff options
author | Peter Powell <petpow@saberuk.com> | 2018-12-09 06:43:55 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-12-09 06:57:10 +0000 |
commit | db5610a5640749ab7dafab82c1ef1553f3d78615 (patch) | |
tree | 9302c5ecc1b8ac299e379ef078ced426db63b8b3 /src/listmode.cpp | |
parent | a5b9f37d62670a49e81c5a53f93bdf485aace4a6 (diff) |
Use consistent numerics when a mode already exists or doesn't exist.
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r-- | src/listmode.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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())); } |