mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 20:19:02 -04:00
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:
parent
bb79b3b7a9
commit
6427e2077e
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user