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
This commit is contained in:
brain 2008-08-31 11:33:11 +00:00
parent e5d87abd35
commit c6ca1cd626
2 changed files with 3 additions and 2 deletions

View File

@ -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];

View File

@ -40,7 +40,7 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque<std::string> &pa
{
if (!params.empty())
this->WriteLine(std::string(":")+this->Instance->Config->GetSID()+" KILL "+params[0]+" :Invalid client introduction ("+params[0]+" with only "+
ConvToStr(params.size())+" of 10 parameters?)");
ConvToStr(params.size())+" of 11 parameters?)");
return true;
}