Somehow, the code which does the "assumption" that no prefix means 'that' server's name, got removed or broken.

I've put it back, this would explain the commands with empty prefixes being echoed back during that java stuff


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7131 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-05-24 21:38:16 +00:00
parent bb79b3b7a9
commit 6427e2077e

View File

@ -1136,7 +1136,7 @@ bool TreeSocket::ProcessLine(std::string &line)
// have been exchanged and anything past this point is taken
// as gospel.
if (prefix != "")
if (!prefix.empty())
{
std::string direction = prefix;
userrec* t = this->Instance->FindNick(prefix);
@ -1158,6 +1158,10 @@ bool TreeSocket::ProcessLine(std::string &line)
route_back_again->SetNextPingTime(time(NULL) + 60);
route_back_again->SetPingFlag();
}
else
{
prefix = this->GetName();
}
if ((command == "MODE") && (params.size() >= 2))
{