Changed 'fake direction' message a little

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2307 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2005-12-09 21:16:08 +00:00
parent c593660ed2
commit b8e19012ce

View File

@ -1702,7 +1702,15 @@ class TreeSocket : public InspSocket
TreeServer* route_back_again = BestRouteTo(direction);
if ((!route_back_again) || (route_back_again->GetSocket() != this))
{
WriteOpers("*** \2WARNING\2! Fake direction in command '%s' from connection '%s'",line.c_str(),this->GetName().c_str());
if (route_back_again)
{
WriteOpers("Protocol violation: Fake direction in command '%s' from connection '%s'",line.c_str(),this->GetName().c_str());
}
else
{
WriteOpers("Protocol violation: Invalid source '%s' in command '%s' from connection '%s'",direction.c_str(),line.c_str(),this->GetName().c_str());
}
return true;
}
}