]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Make this lookup by UUID ahead of nick also, so things work properly.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 27 Aug 2007 03:25:48 +0000 (03:25 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 27 Aug 2007 03:25:48 +0000 (03:25 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7865 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree/treesocket2.cpp

index 527f980bb9a60e4ed1e182ec70a79fe5a741677f..4736976b3cc1df1742a1f1a2ffaba6a6a875e598 100644 (file)
@@ -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))
                                {