summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-01 03:55:40 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-01 03:55:40 +0000
commit2fe1992bc9a1243374ce4260e12b0cb5878de22f (patch)
tree8777540160550948f21c565dca24b9720c10ca2a
parent265fbc66d0c47ad519c9773abddd1b13db9ace92 (diff)
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
-rw-r--r--src/modules/m_spanningtree/encap.cpp2
1 files changed, 1 insertions, 1 deletions
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 &params)
{
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);