From 0960c4ae216d12ad03a8bff4071ff55cb0d48129 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Jan 2017 21:38:21 +0300 Subject: shit fixed in chat api --- include/m_chat.h | 1 + include/m_chat_int.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_chat.h b/include/m_chat.h index 7b1a0b569f..02c9dee93a 100644 --- a/include/m_chat.h +++ b/include/m_chat.h @@ -491,6 +491,7 @@ struct GCHOOK GCDEST *pDest; // pointer to a GCDEST structure which specifies from which session the hook was triggered LPTSTR ptszText; // usage depends on type of event LPTSTR ptszUID; // unique identifier, usage depends on type of event + LPTSTR ptszNick; // user nick, as displayed in a nicklist INT_PTR dwData; // user defined data, usage depends on type of event }; diff --git a/include/m_chat_int.h b/include/m_chat_int.h index 1b24962ae4..c2a29e3d00 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -351,8 +351,8 @@ struct CHAT_MANAGER void (*LoadMsgDlgFont)(int i, LOGFONT *lf, COLORREF *color); wchar_t* (*MakeTimeStamp)(wchar_t *pszStamp, time_t time); - BOOL (*DoEventHook)(const wchar_t *pszID, const char *pszModule, int iType, const wchar_t *pszUID, const wchar_t* pszText, INT_PTR dwItem); - BOOL (*DoEventHookAsync)(HWND hwnd, const wchar_t *pszID, const char *pszModule, int iType, const wchar_t* pszUID, const wchar_t* pszText, INT_PTR dwItem); + BOOL (*DoEventHook)(const wchar_t *pszID, const char *pszModule, int iType, const USERINFO *pUser, const wchar_t* pszText, INT_PTR dwItem); + BOOL (*DoEventHookAsync)(HWND hwnd, const wchar_t *pszID, const char *pszModule, int iType, const USERINFO *pUser, const wchar_t* pszText, INT_PTR dwItem); BOOL (*DoSoundsFlashPopupTrayStuff)(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight, int bManyFix); BOOL (*DoTrayIcon)(SESSION_INFO *si, GCEVENT *gce); -- cgit v1.2.3