From 83310365c69bd40365ee0ae0e16c99c28e24cd0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 14:24:12 +0000 Subject: - all static protocol services replaced with functions; - m_protomod.h removed as useless git-svn-id: http://svn.miranda-ng.org/main/trunk@14260 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/src/clist.cpp | 2 +- protocols/IRCG/src/main.cpp | 2 +- protocols/IRCG/src/stdafx.h | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/IRCG') diff --git a/protocols/IRCG/src/clist.cpp b/protocols/IRCG/src/clist.cpp index 210024ffc0..8d6fac1a5c 100644 --- a/protocols/IRCG/src/clist.cpp +++ b/protocols/IRCG/src/clist.cpp @@ -99,7 +99,7 @@ MCONTACT CIrcProto::CList_AddContact(CONTACT *user, bool InList, bool SetOnline) // here we create a new one since no one is to be found hContact = (MCONTACT)CallService(MS_DB_CONTACT_ADD, 0, 0); if (hContact) { - CallService(MS_PROTO_ADDTOCONTACT, hContact, (LPARAM)m_szModuleName); + Proto_AddToContact(hContact, m_szModuleName); if (InList) db_unset(hContact, "CList", "NotOnList"); diff --git a/protocols/IRCG/src/main.cpp b/protocols/IRCG/src/main.cpp index 7f91134cc1..accf27a448 100644 --- a/protocols/IRCG/src/main.cpp +++ b/protocols/IRCG/src/main.cpp @@ -101,7 +101,7 @@ extern "C" int __declspec(dllexport) Load() pd.type = PROTOTYPE_PROTOCOL; pd.fnInit = (pfnInitProto)ircProtoInit; pd.fnUninit = (pfnUninitProto)ircProtoUninit; - CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd); + Proto_RegisterModule(&pd); return 0; } diff --git a/protocols/IRCG/src/stdafx.h b/protocols/IRCG/src/stdafx.h index 506f831ed8..8cdf9c96b7 100644 --- a/protocols/IRCG/src/stdafx.h +++ b/protocols/IRCG/src/stdafx.h @@ -45,7 +45,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "m_system.h" #include "m_system_cpp.h" #include "m_protocols.h" -#include "m_protomod.h" #include "m_protosvc.h" #include "m_protoint.h" #include "m_clist.h" -- cgit v1.2.3