From 8a37a9344b22a13d7657fde14e56412298494a40 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 20 Feb 2006 22:32:39 +0000 Subject: Fix to stop new code treating all KICK messages as server KICKs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3267 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 33e5e5031..0b1013a15 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2350,9 +2350,10 @@ class TreeSocket : public InspSocket std::string sourceserv = this->myhost; if (params.size() == 3) { + userrec* source = Srv->FindNick(prefix); userrec* user = Srv->FindNick(params[1]); chanrec* chan = Srv->FindChannel(params[0]); - if (user && chan) + if (user && chan && !source) { server_kick_channel(user,chan,(char*)params[2].c_str(),false); } -- cgit v1.2.3