mirror of
https://github.com/znc/znc.git
synced 2026-05-02 11:32:29 +02:00
Fix implicit context of OnSendTo* hooks
Thanks for markus-j for reporting it
This commit is contained in:
@@ -1049,7 +1049,7 @@ void CIRCSock::TrySend() {
|
||||
m_iSendsAllowed--;
|
||||
bool bSkip = false;
|
||||
CString& sLine = m_vsSendQueue.front();
|
||||
ALLMODULECALL(OnSendToIRC(sLine), &bSkip);
|
||||
IRCSOCKMODULECALL(OnSendToIRC(sLine), &bSkip);
|
||||
if (!bSkip) {;
|
||||
DEBUG("(" << m_pNetwork->GetUser()->GetUserName() << "/" << m_pNetwork->GetName() << ") ZNC -> IRC [" << sLine << "]");
|
||||
Write(sLine + "\r\n");
|
||||
|
||||
Reference in New Issue
Block a user