diff options
author | George Hazan <ghazan@miranda.im> | 2022-02-09 19:57:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-02-09 19:57:44 +0300 |
commit | 819d4cd22fc5e6f8c3e8497c64346c13d76f04ad (patch) | |
tree | 37dbad1767e7f21d84234d92e2251c62cf015304 /plugins/NewEventNotify/src/main.cpp | |
parent | a43d5bcb1e0bdafb0193662168976aac989ed922 (diff) |
fixes #1950 (Remove notification engine from TabSRMM)
Diffstat (limited to 'plugins/NewEventNotify/src/main.cpp')
-rw-r--r-- | plugins/NewEventNotify/src/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index 2897ceca63..0d164e9d7f 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -24,8 +24,6 @@ #include "stdafx.h"
-extern PLUGIN_DATA* PopupList[20];
-
//---------------------------
//---Some global variables for the plugin
@@ -86,8 +84,8 @@ int HookedNewEvent(WPARAM hContact, LPARAM hDbEvent) if (dbe.flags & DBEF_SENT) {
// JK, only message event, do not influence others
if (g_plugin.bHideSend && NumberPopupData(hContact, EVENTTYPE_MESSAGE) != -1) {
- PLUGIN_DATA *pdata = PopupList[NumberPopupData(hContact, EVENTTYPE_MESSAGE)];
- PopupAct(pdata->hWnd, MASK_DISMISS, pdata); // JK, only dismiss, i.e. do not kill event (e.g. file transfer)
+ if (auto *pdata = PU_GetByContact(hContact, EVENTTYPE_MESSAGE))
+ PopupAct(pdata->hWnd, MASK_DISMISS, pdata); // JK, only dismiss, i.e. do not kill event (e.g. file transfer)
}
return 0;
}
|