From 8ffc77be71507825a8f7585bcabff8ccc370206a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 8 Dec 2018 20:12:16 +0300 Subject: db_get_sa / db_get_wsa to receive the default value, massive code simplification --- plugins/XSoundNotify/src/xsn_main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/XSoundNotify/src') diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp index 5455779b36..be0e1ef411 100644 --- a/plugins/XSoundNotify/src/xsn_main.cpp +++ b/plugins/XSoundNotify/src/xsn_main.cpp @@ -148,6 +148,7 @@ static int ProcessChatEvent(WPARAM, LPARAM lParam) ptrW nick(db_get_wsa(hContact, gce->pszModule, "MyNick")); if (nick == NULL || gce->ptszText == nullptr) return 0; + if (wcsstr(gce->ptszText, nick)) { isIgnoreSound = g_plugin.getByte(hContact, SETTINGSIGNOREKEY, 0); DBVARIANT dbv; -- cgit v1.2.3