From 2fe1992bc9a1243374ce4260e12b0cb5878de22f Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 1 Mar 2010 03:55:40 +0000 Subject: Let ENCAP target match on server names, not just SIDs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12577 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/encap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/encap.cpp b/src/modules/m_spanningtree/encap.cpp index 9770ec84e..43fd84d9b 100644 --- a/src/modules/m_spanningtree/encap.cpp +++ b/src/modules/m_spanningtree/encap.cpp @@ -23,7 +23,7 @@ void TreeSocket::Encap(User* who, parameterlist ¶ms) { if (params.size() > 1) { - if (InspIRCd::Match(ServerInstance->Config->GetSID(), params[0])) + if (ServerInstance->Config->GetSID() == params[0] || InspIRCd::Match(ServerInstance->Config->ServerName, params[0])) { parameterlist plist(params.begin() + 2, params.end()); ServerInstance->CallCommandHandler(params[1].c_str(), plist, who); -- cgit v1.2.3