From 66ab99eb5b5c47a01e1cc6613af07426abbeb19b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 27 May 2018 14:52:20 +0300 Subject: unused variable CHAT_MANAGER *pci removed and replaced with g_chatApi --- plugins/XSoundNotify/src/xsn_main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/XSoundNotify') diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp index 4802e65965..5e766f0bb7 100644 --- a/plugins/XSoundNotify/src/xsn_main.cpp +++ b/plugins/XSoundNotify/src/xsn_main.cpp @@ -10,7 +10,6 @@ There is no warranty. #include "stdafx.h" CMPlugin g_plugin; -CHAT_MANAGER *pci; LIST XSN_Users(10, NumericKeySortT); HGENMENU hChangeSound = nullptr; @@ -144,7 +143,7 @@ static int ProcessChatEvent(WPARAM, LPARAM lParam) if (gce->iType != GC_EVENT_MESSAGE) return 0; - MCONTACT hContact = pci->FindRoom(gce->pszModule, gce->ptszID); + MCONTACT hContact = g_chatApi.FindRoom(gce->pszModule, gce->ptszID); if (hContact != 0) { ptrW nick(db_get_wsa(hContact, gce->pszModule, "MyNick")); if (nick == NULL || gce->ptszText == nullptr) @@ -234,8 +233,6 @@ static int OnPreShutdown(WPARAM, LPARAM) extern "C" int __declspec(dllexport) Load() { - pci = Chat_GetInterface(); - CreateServiceFunction("XSoundNotify/ContactMenuCommand", ShowDialog); hChangeSoundDlgList = WindowList_Create(); -- cgit v1.2.3