diff options
| author | 2023-07-01 22:43:32 +0100 | |
|---|---|---|
| committer | 2023-07-01 22:44:18 +0100 | |
| commit | 77f3f1b5cb872f7e7a10b79439ddc05e76ddde1d (patch) | |
| tree | 9e92ef773d428447e65261167d6023e3788c3532 /src/modules/m_sqlauth.cpp | |
| parent | Add a missing `override` keyword. (diff) | |
Fix parsing <sqlauth:allowpattern> in v3 compat code.
Diffstat (limited to 'src/modules/m_sqlauth.cpp')
| -rw-r--r-- | src/modules/m_sqlauth.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_sqlauth.cpp b/src/modules/m_sqlauth.cpp index 5e4f1e1f3..1901018d0 100644 --- a/src/modules/m_sqlauth.cpp +++ b/src/modules/m_sqlauth.cpp @@ -166,7 +166,12 @@ public: if (!mask.empty()) exemptions.push_back(mask); } - exemptions.push_back(conf->getString("allowpattern") + "!*@*"); // v3 compat. + + // Begin v3 config compatibility. + const std::string allowpattern = conf->getString("allowpattern"); + if (!allowpattern.empty()) + exemptions.push_back(allowpattern + "!*@*"); + // End v3 config compatibility. hash_algos.clear(); irc::commasepstream algos(conf->getString("hash", "md5,sha256")); |
