From faf1dd9b7e1a3687b46d37ac0f1aa50416295934 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Sun, 9 Oct 2011 17:24:39 +0200 Subject: [PATCH] crypt: Add time stamp to buffered messages This is relevant when replaying the buffer on connect and brings the crypt module in sync with the normal logging functionality (which it bypasses). --- modules/crypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/crypt.cpp b/modules/crypt.cpp index d6794a95..ec1faa2a 100644 --- a/modules/crypt.cpp +++ b/modules/crypt.cpp @@ -47,7 +47,7 @@ public: CChan* pChan = m_pNetwork->FindChan(sTarget); if (pChan) { if (!pChan->AutoClearChanBuffer()) - pChan->AddBuffer(":\244" + _NAMEDFMT(m_pNetwork->GetIRCNick().GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :" + _NAMEDFMT(sMessage)); + pChan->AddBuffer(":\244" + _NAMEDFMT(m_pNetwork->GetIRCNick().GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :{text}", sMessage); m_pUser->PutUser(":\244" + m_pNetwork->GetIRCNick().GetNickMask() + " PRIVMSG " + sTarget + " :" + sMessage, NULL, m_pClient); }