CQuery: fix buffer playback

A regression caused by d0a58ff. Unlike for CChan, from which the
snippet was copy-pasted, for CQuery the params actually need to be
passed. Otherwise buffer playback PRIVMSGs have empty target nick.
This commit is contained in:
J-P Nurmi
2015-08-18 12:55:58 +02:00
parent abda566073
commit 2e85eff2fd

View File

@@ -56,7 +56,7 @@ void CQuery::SendBuffer(CClient* pClient, const CBuffer& Buffer) {
size_t uSize = Buffer.Size();
for (size_t uIdx = 0; uIdx < uSize; uIdx++) {
const CBufLine& BufLine = Buffer.GetBufLine(uIdx);
CMessage Message(BufLine.GetLine(*pUseClient, MCString::EmptyMap));
CMessage Message(BufLine.GetLine(*pUseClient, msParams));
if (!pUseClient->HasEchoMessage() && !pUseClient->HasSelfMessage()) {
if (Message.GetNick().NickEquals(pUseClient->GetNick())) {
continue;