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_*) --- protocols/IRCG/src/clist.cpp | 6 +++--- protocols/IRCG/src/main.cpp | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'protocols/IRCG/src') diff --git a/protocols/IRCG/src/clist.cpp b/protocols/IRCG/src/clist.cpp index 2c0c9b0860..ff43d197c8 100644 --- a/protocols/IRCG/src/clist.cpp +++ b/protocols/IRCG/src/clist.cpp @@ -73,9 +73,9 @@ BOOL CIrcProto::CList_AddDCCChat(const CMStringW& name, const CMStringW& hostmas cle.szTooltip.w = szNick; cle.lParam = (LPARAM)pdci; - if (pcli->pfnGetEvent(hContact, 0)) - pcli->pfnRemoveEvent(hContact, -100); - pcli->pfnAddEvent(&cle); + if (g_CLI.pfnGetEvent(hContact, 0)) + g_CLI.pfnRemoveEvent(hContact, -100); + g_CLI.pfnAddEvent(&cle); } return TRUE; } diff --git a/protocols/IRCG/src/main.cpp b/protocols/IRCG/src/main.cpp index e8b9724a67..d2b9722c68 100644 --- a/protocols/IRCG/src/main.cpp +++ b/protocols/IRCG/src/main.cpp @@ -24,7 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. CMPlugin g_plugin; CHAT_MANAGER *pci; -CLIST_INTERFACE *pcli; ///////////////////////////////////////////////////////////////////////////////////////// @@ -69,7 +68,6 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC extern "C" int __declspec(dllexport) Load() { pci = Chat_GetInterface(); - pcli = Clist_GetInterface(); InitIcons(); InitServers(); -- cgit v1.2.3