summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-11 18:04:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-11 18:04:51 +0000
commitdfe28f600459f976a21dfd69e177485d51d124d8 (patch)
tree853130a9f1d1d480e9ffd9bb0cbf3eafa7d4e0fe /src
parent965064a28767dfacc99bb490e2cb5b817b4a837d (diff)
Fix routing for TIME
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3159 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp6
1 files 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)