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

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