From bb5aff746c50564ded61159c5ae28e6218d0a49d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Jan 2016 16:04:16 +0000 Subject: another atavism removed: old stub services for clist events git-svn-id: http://svn.miranda-ng.org/main/trunk@16181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/src/clist.cpp | 6 +++--- protocols/IRCG/src/main.cpp | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'protocols/IRCG/src') diff --git a/protocols/IRCG/src/clist.cpp b/protocols/IRCG/src/clist.cpp index cd52f2297f..22be4d9471 100644 --- a/protocols/IRCG/src/clist.cpp +++ b/protocols/IRCG/src/clist.cpp @@ -73,9 +73,9 @@ BOOL CIrcProto::CList_AddDCCChat(const CMString& name, const CMString& hostmask, cle.ptszTooltip = szNick; cle.lParam = (LPARAM)pdci; - if (CallService(MS_CLIST_GETEVENT, hContact, 0)) - CallService(MS_CLIST_REMOVEEVENT, hContact, -100); - CallService(MS_CLIST_ADDEVENT, hContact, (LPARAM)&cle); + if (pcli->pfnGetEvent(hContact, 0)) + pcli->pfnRemoveEvent(hContact, -100); + pcli->pfnAddEvent(&cle); } return TRUE; } diff --git a/protocols/IRCG/src/main.cpp b/protocols/IRCG/src/main.cpp index accf27a448..549e9dc8ed 100644 --- a/protocols/IRCG/src/main.cpp +++ b/protocols/IRCG/src/main.cpp @@ -22,6 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" #include "version.h" +CLIST_INTERFACE *pcli; HINSTANCE hInst = NULL; int hLangpack; @@ -89,6 +90,7 @@ static int ircProtoUninit(CIrcProto *ppro) extern "C" int __declspec(dllexport) Load() { mir_getLP(&pluginInfo); + mir_getCLI(); InitIcons(); InitServers(); -- cgit v1.2.3