summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-18 17:50:17 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-18 17:50:17 +0000
commit5750ab5723389af0babfbb23f54343f4b10fbc1b (patch)
tree01bbe0305df0ba2ed4b30f52f0a6f9f8a622c224 /src/modules/m_spanningtree
parent398e33c16bc61c3adf568b1e2d65c2965e762656 (diff)
Set parent to empty if there is no parent, pippijn, does this fix your duplicate links?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10034 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/protocolinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp
index 66a18a5dd..284f30fed 100644
--- a/src/modules/m_spanningtree/protocolinterface.cpp
+++ b/src/modules/m_spanningtree/protocolinterface.cpp
@@ -13,7 +13,7 @@ void SpanningTreeProtocolInterface::GetServerList(ProtoServerList &sl)
ProtoServer ps;
ps.servername = i->second->GetName();
TreeServer* s = i->second->GetParent();
- ps.parentname = s ? s->GetName() : ServerInstance->Config->ServerName;
+ ps.parentname = s ? s->GetName() : "";
ps.usercount = i->second->GetUserCount();
ps.opercount = i->second->GetOperCount();
ps.gecos = i->second->GetDesc();