diff options
Diffstat (limited to 'src/modules/m_spanningtree/kill.cpp')
-rw-r--r-- | src/modules/m_spanningtree/kill.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/kill.cpp b/src/modules/m_spanningtree/kill.cpp index b8413942d..93bed9bbe 100644 --- a/src/modules/m_spanningtree/kill.cpp +++ b/src/modules/m_spanningtree/kill.cpp @@ -35,7 +35,8 @@ bool TreeSocket::RemoteKill(const std::string &prefix, std::deque<std::string> & /* Prepend kill source, if we don't have one */ if (*(params[1].c_str()) != '[') { - params[1] = "[" + prefix + "] Killed (" + params[1] +")"; + TreeServer* ts = Utils->FindServer(prefix); + params[1] = "[" + (ts ? ts->GetName() : prefix) + "] Killed (" + params[1] +")"; } std::string reason = params[1]; params[1] = ":" + params[1]; |