From 318d50bc868fb64a7d5e1edeff3ec23e38925638 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 18 Feb 2019 16:12:46 +0000 Subject: Improve support for wildcards in . Closes #1569. --- src/modules/m_spanningtree/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_spanningtree/server.cpp b/src/modules/m_spanningtree/server.cpp index 07004a1e8..e724a644d 100644 --- a/src/modules/m_spanningtree/server.cpp +++ b/src/modules/m_spanningtree/server.cpp @@ -114,7 +114,7 @@ Link* TreeSocket::AuthRemote(const CommandBase::Params& params) for (std::vector >::iterator i = Utils->LinkBlocks.begin(); i < Utils->LinkBlocks.end(); i++) { Link* x = *i; - if ((!stdalgo::string::equalsci(x->Name, sname)) && (x->Name != "*")) // open link allowance + if (!InspIRCd::Match(sname, x->Name)) continue; if (!ComparePass(*x, password)) -- cgit v1.2.3