From e1a3a426a742028570baaee7430b2b5750734e4c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Dec 2017 17:19:20 +0300 Subject: obsolete structure ADDCONTACTSTRUCT, service MS_ADDCONTACT_SHOW and whole m_addcontact.h removed and replaced with Contact_Add* functions --- protocols/IRCG/src/services.cpp | 9 ++------- protocols/IRCG/src/stdafx.h | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'protocols/IRCG') diff --git a/protocols/IRCG/src/services.cpp b/protocols/IRCG/src/services.cpp index c6ed1fb46c..07097155ce 100644 --- a/protocols/IRCG/src/services.cpp +++ b/protocols/IRCG/src/services.cpp @@ -704,17 +704,12 @@ int __cdecl CIrcProto::GCEventHook(WPARAM, LPARAM lParam) break; case 30: { - PROTOSEARCHRESULT psr = { 0 }; + PROTOSEARCHRESULT psr = {}; psr.cbSize = sizeof(psr); psr.flags = PSR_UNICODE; psr.id.w = gch->ptszUID; psr.nick.w = gch->ptszUID; - - ADDCONTACTSTRUCT acs = { 0 }; - acs.handleType = HANDLE_SEARCHRESULT; - acs.szProto = m_szModuleName; - acs.psr = &psr; - CallService(MS_ADDCONTACT_SHOW, 0, (LPARAM)&acs); + Contact_AddBySearch(m_szModuleName, &psr); } break; case 31: //slap diff --git a/protocols/IRCG/src/stdafx.h b/protocols/IRCG/src/stdafx.h index 5428e0fe9c..14da73d80a 100644 --- a/protocols/IRCG/src/stdafx.h +++ b/protocols/IRCG/src/stdafx.h @@ -56,7 +56,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "m_chat_int.h" #include "m_message.h" #include "m_userinfo.h" -#include "m_addcontact.h" +#include "m_contacts.h" #include "m_button.h" #include "m_genmenu.h" #include "m_file.h" -- cgit v1.2.3