From e566a2d666f6f54eeab364794145e3b0999383ed Mon Sep 17 00:00:00 2001 From: iwalkalone Date: Tue, 3 Sep 2019 00:52:20 +0200 Subject: When silence mask is prefixed by + or -, it should only remove the first character, not the entire string (#1698). --- src/modules/m_silence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_silence.cpp') diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 1e73bda27..55e1da81d 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -282,7 +282,7 @@ class CommandSilence : public SplitCommand std::string mask = parameters[0]; if (mask[0] == '-' || mask[0] == '+') { - mask.erase(0); + mask.erase(0, 1); if (mask.empty()) mask.assign("*"); ModeParser::CleanMask(mask); -- cgit v1.2.3