From 7ec34045f5ffbd548ddb72a712a0b175b953ffee Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 24 Jun 2026 03:40:44 +0100 Subject: Move the challenge out of CAPAB CAPABILITIES into its own command. --- modules/spanningtree/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/spanningtree/utils.cpp') diff --git a/modules/spanningtree/utils.cpp b/modules/spanningtree/utils.cpp index 4a508f544..c6af1ec2c 100644 --- a/modules/spanningtree/utils.cpp +++ b/modules/spanningtree/utils.cpp @@ -302,8 +302,8 @@ void SpanningTreeUtilities::ReadConfiguration(ConfigStatus& status) if ((L->SendPass.find(' ') != std::string::npos) || (L->RecvPass.find(' ') != std::string::npos)) throw ModuleException(Creator->weak_from_this(), "Link block '" + L->Name + "' has a password set that contains a space character which is invalid"); - if ((L->SendPass[0] == ':') || (L->RecvPass[0] == ':')) - throw ModuleException(Creator->weak_from_this(), "Link block '" + L->Name + "' has a password set that begins with a colon (:) which is invalid"); + if ((L->SendPass[0] == ':') || (L->RecvPass[0] == ':') || (L->SendPass[0] == '$') || (L->RecvPass[0] == '$')) + throw ModuleException(Creator->weak_from_this(), "Link block '" + L->Name + "' has a password set that begins with a colon (:) or dollar sign ($) which is invalid"); if (L->IPAddr.empty()) { -- cgit v1.3.1-10-gc9f91