summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 10:59:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 10:59:45 +0000
commitee2f9cee7bd50e7a6234eecbc49b464f36ea9c60 (patch)
tree4fbadfc9d27ecaa3c008154f27b145546f4e079b
parenta234850a2bd205ef82d0c32c41daa9b25d7ced41 (diff)
Safely allow for server KILL
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2038 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp7
1 files changed, 6 insertions, 1 deletions
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;