From 176e52e14fd0358a7f26ca8d7b0205244dfde2e7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 May 2018 23:29:25 +0300 Subject: no need to initialize pcli variable in each plugin (only in Clist_*) --- plugins/NewXstatusNotify/src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/NewXstatusNotify/src') diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp index ee5564be32..1a89ea51bb 100644 --- a/plugins/NewXstatusNotify/src/main.cpp +++ b/plugins/NewXstatusNotify/src/main.cpp @@ -21,7 +21,6 @@ #include "stdafx.h" -CLIST_INTERFACE *pcli; CMPlugin g_plugin; LIST eventListXStatus(10, PtrKeySortT); @@ -331,7 +330,7 @@ void BlinkIcon(MCONTACT hContact, HICON hIcon, wchar_t *stzText) cle.hIcon = hIcon; cle.pszService = "UserOnline/Description"; cle.szTooltip.w = stzText; - pcli->pfnAddEvent(&cle); + g_CLI.pfnAddEvent(&cle); } void PlayChangeSound(MCONTACT hContact, const char *name) @@ -1147,8 +1146,6 @@ static int OnShutdown(WPARAM, LPARAM) extern "C" int __declspec(dllexport) Load(void) { - pcli = Clist_GetInterface(); - g_plugin.registerIcon(LPGEN("New Status Notify"), iconList, MODULE); //"Service" Hook, used when the DB settings change: we'll monitor the "status" setting. -- cgit v1.2.3