Fix implicit context of OnSendTo* hooks

Thanks for markus-j for reporting it
This commit is contained in:
Alexey Sokolov
2015-01-11 17:07:23 +00:00
parent 5608e4f201
commit 600f91f128
3 changed files with 16 additions and 16 deletions

View File

@@ -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");