From 60e88fc19d5d8983054badac26659653c1092259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 5 Jul 2016 16:19:28 +0200 Subject: [PATCH] Don't strip timestamp when sending echo-messages We preserve the time of the original message by making a copy of it, and just changing the nick, which we then pass on to the CMessage overload of PutClient, which converts the timestamp into a @time tag. --- src/Client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Client.cpp b/src/Client.cpp index abbb79ae..ae16ca64 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -880,8 +880,9 @@ void CClient::EchoMessage(const CMessage& Message) { if (pClient->HasEchoMessage() || (pClient != this && (m_pNetwork->IsChan(Message.GetParam(0)) || pClient->HasSelfMessage()))) { - pClient->PutClient(":" + GetNickMask() + " " + - Message.ToString(CMessage::ExcludePrefix)); + CMessage EchoMessage(Message); + EchoMessage.SetNick(GetNickMask()); + pClient->PutClient(EchoMessage); } } }