summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 9fed5da60..53d5bb014 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1203,19 +1203,20 @@ 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] +")";
- }
+ /* Prepend kill source, if we don't have one */
std::string sourceserv = prefix;
if (u)
{
sourceserv = u->server;
}
+ if (*(params[1].c_str()) != '[')
+ {
+ params[1] = "[" + sourceserv + "] Killed (" + params[1] +")";
+ }
+ std::string reason = params[1];
params[1] = ":" + params[1];
DoOneToAllButSender(prefix,"KILL",params,sourceserv);
- Srv->QuitUser(who,params[1]);
+ Srv->QuitUser(who,reason);
}
return true;
}