mirror of
https://github.com/znc/znc.git
synced 2026-05-03 03:52:33 +02:00
Pass timestamp to playline hooks
This allows implementing timestamp-based (eg. client specific - #343) filtering of playback buffers. For clients that don't support server-time, getting an accurate timestamp out of a raw buffer playline is impossible.
This commit is contained in:
@@ -638,9 +638,10 @@ void CIRCNetwork::ClientConnected(CClient *pClient) {
|
||||
|
||||
uSize = m_NoticeBuffer.Size();
|
||||
for (uIdx = 0; uIdx < uSize; uIdx++) {
|
||||
CString sLine = m_NoticeBuffer.GetLine(uIdx, *pClient, msParams);
|
||||
const CBufLine& BufLine = m_NoticeBuffer.GetBufLine(uIdx);
|
||||
CString sLine = BufLine.GetLine(*pClient, msParams);
|
||||
bool bContinue = false;
|
||||
NETWORKMODULECALL(OnPrivBufferPlayLine(*pClient, sLine), m_pUser, this, NULL, &bContinue);
|
||||
NETWORKMODULECALL(OnPrivBufferPlayLine2(*pClient, sLine, BufLine.GetTime()), m_pUser, this, NULL, &bContinue);
|
||||
if (bContinue) continue;
|
||||
pClient->PutClient(sLine);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user