diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/time.cpp | 3 |
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> ¶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 { |