diff options
Diffstat (limited to 'src')
-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)) { |