mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01: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:
@@ -69,7 +69,7 @@ void CQuery::SendBuffer(CClient* pClient, const CBuffer& Buffer) {
|
||||
CUtils::SetMessageTags(sLine, msBatchTags);
|
||||
}
|
||||
bool bContinue = false;
|
||||
NETWORKMODULECALL(OnPrivBufferPlayLine(*pUseClient, sLine), m_pNetwork->GetUser(), m_pNetwork, NULL, &bContinue);
|
||||
NETWORKMODULECALL(OnPrivBufferPlayLine2(*pUseClient, sLine, BufLine.GetTime()), m_pNetwork->GetUser(), m_pNetwork, NULL, &bContinue);
|
||||
if (bContinue) continue;
|
||||
m_pNetwork->PutUser(sLine, pUseClient);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user