summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 17:06:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 17:06:45 +0000
commit5d416d79a7d1ec35fef3527c1f7b7b4126d5ec48 (patch)
tree4049a7e33f62fb589191673c06cc0098cb93471b /src
parent9a778f76191249fd9522ecbda1c259e9f4a3aeb7 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp5
1 files changed, 5 insertions, 0 deletions
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)
{