m_spanningtree Handle ? wildcard as well when processing an incoming ENCAP

This commit is contained in:
attilamolnar 2012-07-01 21:44:02 +02:00
parent fae560cddc
commit 1d7764cbc1
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ void TreeSocket::Encap(User* who, parameterlist &params)
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);
}

View File

@ -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;