diff options
author | Peter Powell <petpow@saberuk.com> | 2017-12-10 13:59:30 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-12-10 13:59:59 +0000 |
commit | fb4abb7669cbdcec05c79fe78ae9d256dece2dc8 (patch) | |
tree | 2a02d81b56dbe2886746ab8fb617af6cf4b01d37 /src/modules | |
parent | 98372c3cf2c1455e41c388d822876a4d146ae76d (diff) |
Require that the services server be configured in <sasl:target>.
Closes #1430.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_sasl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 2a855c74c..2fc0725a9 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -398,7 +398,11 @@ class ModuleSASL : public Module void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { - sasl_target = ServerInstance->Config->ConfValue("sasl")->getString("target", "*"); + std::string target = ServerInstance->Config->ConfValue("sasl")->getString("target"); + if (target.empty()) + throw ModuleException("<sasl:target> must be set to the name of your services server!"); + + sasl_target = target; servertracker.Reset(); } |