diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-24 21:38:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-24 21:38:16 +0000 |
commit | 6427e2077e3881845650e0dc9bb37839c17dfca3 (patch) | |
tree | 9ac163e005b83c15ea56d6e5a1223bc842d400a8 | |
parent | bb79b3b7a998634d8fb6c4e9462aff744a213f3e (diff) |
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
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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)) { |