summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 03:25:48 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 03:25:48 +0000
commit759f3160a7a19bec2c646fc315df488dddc49976 (patch)
tree3419133cb3eed1d64469c0697afe33f246b66477
parent95fdb54284dc6f3a1742e4fb4a2574bfc783626a (diff)
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
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp12
1 files changed, 11 insertions, 1 deletions
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))
{