bool TreeSocket::RemoteKill(const std::string &prefix, std::deque<std::string> ¶ms)
-{
+{
if (params.size() != 2)
return true;
if (who)
{
- /* Prepend kill source, if we don't have one */
+ /* 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];