diff options
author | Sadie Powell <sadie@witchery.services> | 2020-04-09 15:18:04 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-04-09 15:18:04 +0100 |
commit | bb39d78be61e45555cdd87985e26ea07b725fabf (patch) | |
tree | 157dc8144dca9d65eec162773fe3f845e6a5582f /src/modules/m_filter.cpp | |
parent | 52a433cfccad8559ff7d12f7ea308d8f4570444f (diff) |
Set the minimum length to 1 for most config items with a default.
Diffstat (limited to 'src/modules/m_filter.cpp')
-rw-r--r-- | src/modules/m_filter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index 3e7652509..9325c243d 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -624,7 +624,7 @@ void ModuleFilter::ReadConfig(ConfigStatus& status) ConfigTag* tag = i->second; // If "target" is not found, try the old "channel" key to keep compatibility with 2.0 configs - const std::string target = tag->getString("target", tag->getString("channel")); + const std::string target = tag->getString("target", tag->getString("channel"), 1); if (!target.empty()) { if (target[0] == '#') |