From 6427e2077e3881845650e0dc9bb37839c17dfca3 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 24 May 2007 21:38:16 +0000 Subject: 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 --- src/modules/m_spanningtree/treesocket2.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 39118a630..dcf4652c7 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -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)) { -- cgit v1.2.3