From 1c9d5f4123e3cd9f85483cee391909e69601b949 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 3 Jul 2009 22:09:36 +0000 Subject: 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 --- src/modules/m_spanningtree/time.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 ¶ms 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 { -- cgit v1.2.3