diff options
-rw-r--r-- | plugins/Clist_modern/src/modern_clc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 72f00bc572..27b0dbbbdb 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -153,13 +153,13 @@ static int clcHookSettingChanged(WPARAM hContact, LPARAM lParam) return 0;
}
-static int clcHookDbEventAdded(WPARAM hContact, LPARAM lParam)
+static int clcHookDbEventAdded(WPARAM hContact, LPARAM hDbEvent)
{
g_CluiData.t_now = time(0);
- if (hContact && lParam) {
+ if (hContact && hDbEvent) {
DBEVENTINFO dbei = {};
- db_event_get(lParam, &dbei);
- if (dbei.eventType == EVENTTYPE_MESSAGE && !(dbei.flags & DBEF_SENT)) {
+ db_event_get(hDbEvent, &dbei);
+ if ((dbei.eventType == EVENTTYPE_MESSAGE || dbei.eventType == EVENTTYPE_FILE) && !(dbei.flags & DBEF_SENT)) {
g_plugin.setDword(hContact, "mf_lastmsg", dbei.timestamp);
ClcCacheEntry *pdnce = Clist_GetCacheEntry(hContact);
if (pdnce)
|