From 5d416d79a7d1ec35fef3527c1f7b7b4126d5ec48 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Dec 2005 17:06:45 +0000 Subject: Added kill source for remote kills that don't have them git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2233 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index f6762b9a0..fd3673ccb 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1204,6 +1204,11 @@ class TreeSocket : public InspSocket userrec* who = Srv->FindNick(nick); if (who) { + /* Append kill source, if we don't have one */ + if (*(params[1].c_str()) != '[') + { + params[1] = "[" + std::string(u->server) + "] Killed (" + params[1] +")"; + } std::string sourceserv = prefix; if (u) { -- cgit v1.2.3