mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Fix CChan::SendBuffer()
The CChan::SendBuffer(CClient,CBuffer) overload should just playback the given buffer and obviously not clear the channel's own buffer => auto-clear the buffer in CChan::SendBuffer(CClient) as appropriate.
This commit is contained in:
+3
-4
@@ -527,6 +527,9 @@ CNick* CChan::FindNick(const CString& sNick) {
|
||||
|
||||
void CChan::SendBuffer(CClient* pClient) {
|
||||
SendBuffer(pClient, m_Buffer);
|
||||
if (AutoClearChanBuffer()) {
|
||||
ClearBuffer();
|
||||
}
|
||||
}
|
||||
|
||||
void CChan::SendBuffer(CClient* pClient, const CBuffer& Buffer) {
|
||||
@@ -575,10 +578,6 @@ void CChan::SendBuffer(CClient* pClient, const CBuffer& Buffer) {
|
||||
if (pClient)
|
||||
break;
|
||||
}
|
||||
|
||||
if (AutoClearChanBuffer()) {
|
||||
ClearBuffer();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user