summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-02-18 16:12:46 +0000
committerPeter Powell <petpow@saberuk.com>2019-02-18 16:17:23 +0000
commit318d50bc868fb64a7d5e1edeff3ec23e38925638 (patch)
tree0bfea89b6dbf525a6120e65c466b93107d3f0470 /src
parent8bc996bcc1444b33ccfde6ca3588deee0a0459d1 (diff)
Improve support for wildcards in <link:name>.
Closes #1569.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/server.cpp2
1 files changed, 1 insertions, 1 deletions
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<reference<Link> >::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))