mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix implicit context of OnSendTo* hooks
Thanks for markus-j for reporting it
This commit is contained in:
@@ -770,7 +770,7 @@ CString CClient::GetFullName() const {
|
||||
void CClient::PutClient(const CString& sLine) {
|
||||
bool bReturn = false;
|
||||
CString sCopy = sLine;
|
||||
ALLMODULECALL(OnSendToClient(sCopy, *this), &bReturn);
|
||||
NETWORKMODULECALL(OnSendToClient(sCopy, *this), m_pUser, m_pNetwork, this, &bReturn);
|
||||
if (bReturn) return;
|
||||
DEBUG("(" << GetFullName() << ") ZNC -> CLI [" << sCopy << "]");
|
||||
Write(sCopy + "\r\n");
|
||||
|
||||
Reference in New Issue
Block a user