diff options
Diffstat (limited to 'protocols/ICQ-WIM/src')
-rw-r--r-- | protocols/ICQ-WIM/src/poll.cpp | 2 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/proto.h | 1 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/utils.cpp | 5 |
3 files changed, 5 insertions, 3 deletions
diff --git a/protocols/ICQ-WIM/src/poll.cpp b/protocols/ICQ-WIM/src/poll.cpp index e2e5fb8796..279e8ce0b2 100644 --- a/protocols/ICQ-WIM/src/poll.cpp +++ b/protocols/ICQ-WIM/src/poll.cpp @@ -228,7 +228,7 @@ void CIcqProto::ProcessNotification(const JSONNode &ev) // we've read/removed some messages from server if (iOldCount > m_unreadEmails) { - g_clistApi.pfnRemoveEvent(0, 1); + g_clistApi.pfnRemoveEvent(0, ICQ_FAKE_EVENT_ID); return; } diff --git a/protocols/ICQ-WIM/src/proto.h b/protocols/ICQ-WIM/src/proto.h index 5a27d13893..b560335ce0 100644 --- a/protocols/ICQ-WIM/src/proto.h +++ b/protocols/ICQ-WIM/src/proto.h @@ -35,6 +35,7 @@ #define ICQ_APP_ID "ic1nmMjqg7Yu-0hL" #define ICQ_API_SERVER "https://api.icq.net" +#define ICQ_FAKE_EVENT_ID 0xBABAEB #define ICQ_ROBUST_SERVER "https://rapi.icq.net" #define PS_DUMMY "/DoNothing" diff --git a/protocols/ICQ-WIM/src/utils.cpp b/protocols/ICQ-WIM/src/utils.cpp index 3f5cefb9a5..786c4679f2 100644 --- a/protocols/ICQ-WIM/src/utils.cpp +++ b/protocols/ICQ-WIM/src/utils.cpp @@ -369,9 +369,10 @@ void CIcqProto::EmailNotification(const wchar_t *pwszText) return; CLISTEVENT cle = {}; - cle.hDbEvent = 1; + cle.hDbEvent = ICQ_FAKE_EVENT_ID; + cle.moduleName = m_szModuleName; cle.hIcon = IcoLib_GetIconByHandle(iconList[0].hIcolib); - cle.flags = CLEF_UNICODE; + cle.flags = CLEF_UNICODE | CLEF_PROTOCOLGLOBAL; cle.pszService = szServiceFunction; cle.szTooltip.w = pwszText; g_clistApi.pfnAddEvent(&cle); |