summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-07-03 22:09:36 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-07-03 22:09:36 +0000
commit1c9d5f4123e3cd9f85483cee391909e69601b949 (patch)
treee85a6f8514e4fa0cf01e979409a898ca14127668 /src/modules/m_spanningtree
parent5b7cf37e6005b5e7c750b30dbf7943e9124436d3 (diff)
Use server name for source of remote TIME rather than SID
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11438 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/time.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/time.cpp b/src/modules/m_spanningtree/time.cpp
index b45f52558..fb88f0a41 100644
--- a/src/modules/m_spanningtree/time.cpp
+++ b/src/modules/m_spanningtree/time.cpp
@@ -57,13 +57,14 @@ bool TreeSocket::Time(const std::string &prefix, std::deque<std::string> &params
User* u = this->ServerInstance->FindNick(params[1]);
if ((u) && (IS_LOCAL(u)))
{
+ std::string sourceserv = Utils->FindServer(prefix)->GetName();
time_t rawtime = atol(params[2].c_str());
struct tm * timeinfo;
timeinfo = localtime(&rawtime);
char tms[26];
snprintf(tms,26,"%s",asctime(timeinfo));
tms[24] = 0;
- u->WriteNumeric(RPL_TIME, "%s %s :%s",u->nick.c_str(),prefix.c_str(),tms);
+ u->WriteNumeric(RPL_TIME, "%s %s :%s",u->nick.c_str(),sourceserv.c_str(),tms);
}
else
{