From 45bf5f51cc788cb8f19e1b8fcd5b8818dc7a2e00 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Feb 2019 21:02:11 +0300 Subject: GCEVENT::GCEF_UTF8 - flag for direct communication with utf8-encoded chat events (UTF16LE by default) --- plugins/XSoundNotify/src/xsn_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/XSoundNotify/src') diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp index be0e1ef411..9b0da63ff9 100644 --- a/plugins/XSoundNotify/src/xsn_main.cpp +++ b/plugins/XSoundNotify/src/xsn_main.cpp @@ -143,13 +143,13 @@ static int ProcessChatEvent(WPARAM, LPARAM lParam) if (gce->iType != GC_EVENT_MESSAGE) return 0; - MCONTACT hContact = g_chatApi.FindRoom(gce->pszModule, gce->ptszID); + MCONTACT hContact = g_chatApi.FindRoom(gce->pszModule, gce->pszID.w); if (hContact != 0) { ptrW nick(db_get_wsa(hContact, gce->pszModule, "MyNick")); - if (nick == NULL || gce->ptszText == nullptr) + if (nick == NULL || gce->pszText.w == nullptr) return 0; - if (wcsstr(gce->ptszText, nick)) { + if (wcsstr(gce->pszText.w, nick)) { isIgnoreSound = g_plugin.getByte(hContact, SETTINGSIGNOREKEY, 0); DBVARIANT dbv; if (!isIgnoreSound && !g_plugin.getWString(hContact, SETTINGSKEY, &dbv)) { -- cgit v1.2.3