diff options
author | Peter Powell <petpow@saberuk.com> | 2019-02-18 16:12:46 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-02-18 16:17:23 +0000 |
commit | 318d50bc868fb64a7d5e1edeff3ec23e38925638 (patch) | |
tree | 0bfea89b6dbf525a6120e65c466b93107d3f0470 | |
parent | 8bc996bcc1444b33ccfde6ca3588deee0a0459d1 (diff) |
Improve support for wildcards in <link:name>.
Closes #1569.
-rw-r--r-- | src/modules/m_spanningtree/server.cpp | 2 |
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)) |