From 6dc0b83a416ef200ef7eba04ee6dc7e69842f5cc Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 27 Mar 2006 19:51:13 +0000 Subject: Fix for desync in channels with keys a'la services git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3779 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index f504c28bf..660e40ae7 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1200,7 +1200,7 @@ class TreeSocket : public InspSocket const char* n = ""; if (x & UCMODE_OP) - { + ; { n = "@"; } else if (x & UCMODE_HOP) @@ -3516,11 +3516,7 @@ class ModuleSpanningTree : public Module std::deque params; params.clear(); params.push_back(channel->name); - if (*channel->key) - { - // if the channel has a key, force the join by emulating the key. - params.push_back(channel->key); - } + if (channel->GetUserCounter() > 1) { // not the first in the channel -- cgit v1.2.3