summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-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;