From 2f0b2d4656eb1e0a5cfbda54631ebecbb16cfe4d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 22 Jan 2006 20:22:15 +0000 Subject: Fixes to server kick (i hope) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2835 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree.cpp') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 7204c2435..b15c1c1de 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2035,7 +2035,19 @@ class TreeSocket : public InspSocket userrec* who = Srv->FindNick(params[1]); chanrec* where = Srv->FindChannel(params[0]); server_kick_channel(who, where, (char*)params[2].c_str(), false); - return true; + std::string sourceserv = this->myhost; + if (this->InboundServerName != "") + { + sourceserv = this->InboundServerName; + } + if (IsServer(prefix)) + { + return DoOneToAllButSenderRaw(line,sourceserv,prefix,command,params); + } + else + { + return true; + } } else if (command == "REHASH") { -- cgit v1.2.3