mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
m_spanningtree Handle ? wildcard as well when processing an incoming ENCAP
This commit is contained in:
parent
fae560cddc
commit
1d7764cbc1
@ -38,7 +38,7 @@ void TreeSocket::Encap(User* who, parameterlist ¶ms)
|
||||
|
||||
params[params.size() - 1] = ":" + params[params.size() - 1];
|
||||
|
||||
if (params[0].find('*') != std::string::npos)
|
||||
if (params[0].find_first_of("*?") != std::string::npos)
|
||||
{
|
||||
Utils->DoOneToAllButSender(who->uuid, "ENCAP", params, who->server);
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ void SpanningTreeProtocolInterface::GetServerList(ProtoServerList &sl)
|
||||
|
||||
bool SpanningTreeProtocolInterface::SendEncapsulatedData(const parameterlist &encap)
|
||||
{
|
||||
if (encap[0].find('*') != std::string::npos)
|
||||
if (encap[0].find_first_of("*?") != std::string::npos)
|
||||
{
|
||||
Utils->DoOneToMany(ServerInstance->Config->GetSID(), "ENCAP", encap);
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user