diff options
| author | 2017-12-10 13:59:30 +0000 | |
|---|---|---|
| committer | 2017-12-10 13:59:59 +0000 | |
| commit | fb4abb7669cbdcec05c79fe78ae9d256dece2dc8 (patch) | |
| tree | 2a02d81b56dbe2886746ab8fb617af6cf4b01d37 | |
| parent | Extract RFC modes from the core to core_channel and core_user. (diff) | |
Require that the services server be configured in <sasl:target>.
Closes #1430.
| -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(); } |
