summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/kill.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-31 11:33:11 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-31 11:33:11 +0000
commitc6ca1cd62688c3a012b138ad33131a700fe7bbc5 (patch)
tree9e7a18eb5a875c50189614539e2a61b79dfc6d82 /src/modules/m_spanningtree/kill.cpp
parente5d87abd352a5e2ea3d13e89adb61d40871421b9 (diff)
Two fixes: First, change the error message for too few params for UID to now match the correct 11 params, and change the server name in remote kill to correctly show server name rather than sid
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10363 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/kill.cpp')
-rw-r--r--src/modules/m_spanningtree/kill.cpp3
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];