diff options
author | iwalkalone <iwalkalone69@users.noreply.github.com> | 2019-09-03 00:52:20 +0200 |
---|---|---|
committer | P. Powell <petpow@saberuk.com> | 2019-09-02 23:52:20 +0100 |
commit | e566a2d666f6f54eeab364794145e3b0999383ed (patch) | |
tree | 14ebf9a3f7123f5ffdb2b4e25e369c799237aa84 /src/modules/m_silence.cpp | |
parent | 5cf6f65044c27a69e70d795d75e826ce3f0b97a1 (diff) |
When silence mask is prefixed by + or -, it should only remove the first character, not the entire string (#1698).
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r-- | src/modules/m_silence.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |