From aa953912596e5fae066804ac6afbe9c44ceae50d Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 28 Aug 2007 21:48:56 +0000 Subject: Tidy up here, same tidyup cannot go back to stable as it involves uids git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7984 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 249507799..7172656ee 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1213,7 +1213,11 @@ bool TreeSocket::ProcessLine(std::string &line) } else { - prefix = this->GetName(); + TreeServer* n = Utils->FindServer(GetName()); + if (n) + prefix = n->GetID(); + else + prefix = GetName(); } if ((command == "MODE") && (params.size() >= 2)) @@ -1314,8 +1318,6 @@ bool TreeSocket::ProcessLine(std::string &line) } else if (command == "PING") { - if (prefix.empty()) - prefix = this->GetName(); /* * We just got a ping from a server that's bursting. * This can't be right, so set them to not bursting, and @@ -1336,8 +1338,6 @@ bool TreeSocket::ProcessLine(std::string &line) } else if (command == "PONG") { - if (prefix.empty()) - prefix = this->GetName(); /* * We just got a pong from a server that's bursting. * This can't be right, so set them to not bursting, and @@ -1377,10 +1377,6 @@ bool TreeSocket::ProcessLine(std::string &line) } else if (command == "SVSNICK") { - if (prefix.empty()) - { - prefix = this->GetName(); - } return this->ForceNick(prefix,params); } else if (command == "OPERQUIT") @@ -1425,16 +1421,10 @@ bool TreeSocket::ProcessLine(std::string &line) } else if (command == "SVSJOIN") { - if (prefix.empty()) - { - prefix = this->GetName(); - } return this->ServiceJoin(prefix,params); } else if (command == "SVSPART") { - if (prefix.empty()) - prefix = this->GetName(); return this->ServicePart(prefix,params); } else if (command == "SQUIT") -- cgit v1.2.3