inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 318d50bc868fb64a7d5e1edeff3ec23e38925638
parent 8bc996bcc1444b33ccfde6ca3588deee0a0459d1
Author: Peter Powell <petpow@saberuk.com>
Date:   Mon, 18 Feb 2019 16:12:46 +0000

Improve support for wildcards in <link:name>.

Closes #1569.

Diffstat:
Msrc/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 @@ -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))