From 759f3160a7a19bec2c646fc315df488dddc49976 Mon Sep 17 00:00:00 2001
From: w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Date: Mon, 27 Aug 2007 03:25:48 +0000
Subject: 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
---
 src/modules/m_spanningtree/treesocket2.cpp | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

(limited to 'src')

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))
 				{
-- 
cgit v1.2.3