From: w00t Date: Mon, 27 Aug 2007 03:25:48 +0000 (+0000) Subject: Make this lookup by UUID ahead of nick also, so things work properly. X-Git-Tag: v2.0.23~4714 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=759f3160a7a19bec2c646fc315df488dddc49976;p=user%2Fhenk%2Fcode%2Finspircd.git Make this lookup by UUID ahead of nick also, so things work properly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7865 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 527f980bb..4736976b3 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1119,11 +1119,21 @@ bool TreeSocket::ProcessLine(std::string &line) if (!prefix.empty()) { std::string direction = prefix; - userrec* t = this->Instance->FindNick(prefix); + // XXX + userrec *t = this->Instance->FindUUID(prefix); + if (!t) + { + userrec* t = this->Instance->FindNick(prefix); + if (t) + { + Instance->Log(DEBUG,"Ack, legacy command!"); + } + } if (t) { direction = t->server; } + TreeServer* route_back_again = Utils->BestRouteTo(direction); if ((!route_back_again) || (route_back_again->GetSocket() != this)) {