From ee2f9cee7bd50e7a6234eecbc49b464f36ea9c60 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 30 Nov 2005 10:59:45 +0000 Subject: Safely allow for server KILL git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2038 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 7 ++++++- 1 file changed, 6 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 3de75765b..73277c175 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -680,8 +680,13 @@ class TreeSocket : public InspSocket userrec* who = Srv->FindNick(nick); if (who) { + std::string sourceserv = prefix; + if (u) + { + sourceserv = u->server; + } params[1] = ":" + params[1]; - DoOneToAllButSender(prefix,"KILL",params,u->server); + DoOneToAllButSender(prefix,"KILL",params,sourceserv); Srv->QuitUser(who,reason); } return true; -- cgit v1.2.3