summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-11 17:57:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-11 17:57:44 +0000
commit965064a28767dfacc99bb490e2cb5b817b4a837d (patch)
tree9cac46f72054ddda37cbf09a9892a2b47a1d1fcb /src
parent9a0c30d6b9cfbd0bc70918ef4c605a92d1dc6914 (diff)
Fixes to pass on TIME
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3158 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 96eb2fc63..19ee36158 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1710,6 +1710,13 @@ class TreeSocket : public InspSocket
DoOneToOne(Srv->GetServerName(),"TIME",params,u->server);
}
}
+ else
+ {
+ // not us, pass it on
+ userrec* u = Srv->FindNick(params[1]);
+ if (u)
+ DoOneToOne(prefix,"TIME",params,u->server);
+ }
}
else if (params.size() == 3)
{
@@ -1724,7 +1731,8 @@ class TreeSocket : public InspSocket
}
else
{
- DoOneToOne(prefix,"TIME",params,u->server);
+ if (u)
+ DoOneToOne(prefix,"TIME",params,u->server);
}
}
return true;