From dfe28f600459f976a21dfd69e177485d51d124d8 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Feb 2006 18:04:51 +0000 Subject: Fix routing for TIME git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3159 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 19ee36158..d38ed1093 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1698,7 +1698,7 @@ class TreeSocket : public InspSocket if (params.size() == 2) { // someone querying our time? - if (Srv->MatchText(Srv->GetServerName(),params[0])) + if (Srv->GetServerName() == params[0]) { userrec* u = Srv->FindNick(params[1]); if (u) @@ -1707,7 +1707,7 @@ class TreeSocket : public InspSocket snprintf(curtime,256,"%lu",(unsigned long)time(NULL)); params.push_back(curtime); params[0] = prefix; - DoOneToOne(Srv->GetServerName(),"TIME",params,u->server); + DoOneToOne(Srv->GetServerName(),"TIME",params,params[0]; } } else @@ -1715,7 +1715,7 @@ class TreeSocket : public InspSocket // not us, pass it on userrec* u = Srv->FindNick(params[1]); if (u) - DoOneToOne(prefix,"TIME",params,u->server); + DoOneToOne(prefix,"TIME",params,params[0]); } } else if (params.size() == 3) -- cgit v1.2.3