From fb4abb7669cbdcec05c79fe78ae9d256dece2dc8 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 10 Dec 2017 13:59:30 +0000 Subject: Require that the services server be configured in . Closes #1430. --- src/modules/m_sasl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules') 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(" must be set to the name of your services server!"); + + sasl_target = target; servertracker.Reset(); } -- cgit v1.2.3