From 3f0a66ce0636726c5b16c291f59e59f6ae7edaf7 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 9 Oct 2018 19:53:37 +0100 Subject: Fix sending malformed ERR_BANLISTFULL numerics in some contexts. Fixes ircdocs/irc-defs#37. --- src/modules/m_banredirect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index 1d35c2934..3df8b5e66 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -80,7 +80,8 @@ class BanRedirect : public ModeWatcher if(adding && (channel->bans.size() > static_cast(maxbans))) { - source->WriteNumeric(478, "%s %s :Channel ban list for %s is full (maximum entries for this channel is %ld)", source->nick.c_str(), channel->name.c_str(), channel->name.c_str(), maxbans); + source->WriteNumeric(478, "%s %s %c :Channel ban list for %s is full (maximum entries for this channel is %ld)", + source->nick.c_str(), channel->name.c_str(), mode, channel->name.c_str(), maxbans); return false; } -- cgit v1.2.3