From d28931ebdfc4ff561d05ab000aee4cbb5ac24d62 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Apr 2018 00:55:51 +0300 Subject: OnEvent(EV_PROTO_ONCONTACTDELETED) => PROTO_INTERFACE::OnContactDeleted --- protocols/IRCG/src/services.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'protocols/IRCG/src/services.cpp') diff --git a/protocols/IRCG/src/services.cpp b/protocols/IRCG/src/services.cpp index 0c798257f9..8b4413ce9d 100644 --- a/protocols/IRCG/src/services.cpp +++ b/protocols/IRCG/src/services.cpp @@ -172,11 +172,10 @@ INT_PTR __cdecl CIrcProto::OnDoubleclicked(WPARAM, LPARAM lParam) return 0; } -int __cdecl CIrcProto::OnContactDeleted(WPARAM wp, LPARAM) +void CIrcProto::OnContactDeleted(MCONTACT hContact) { - MCONTACT hContact = (MCONTACT)wp; if (!hContact) - return 0; + return; DBVARIANT dbv; if (!getWString(hContact, "Nick", &dbv)) { @@ -192,9 +191,9 @@ int __cdecl CIrcProto::OnContactDeleted(WPARAM wp, LPARAM) PostIrcMessage(L"/PART %s %s", dbv.ptszVal, m_userInfo); } else { - BYTE bDCC = getByte((MCONTACT)wp, "DCC", 0); + BYTE bDCC = getByte(hContact, "DCC", 0); if (bDCC) { - CDccSession *dcc = FindDCCSession((MCONTACT)wp); + CDccSession *dcc = FindDCCSession(hContact); if (dcc) dcc->Disconnect(); } @@ -202,7 +201,6 @@ int __cdecl CIrcProto::OnContactDeleted(WPARAM wp, LPARAM) db_free(&dbv); } - return 0; } INT_PTR __cdecl CIrcProto::OnJoinChat(WPARAM wp, LPARAM) -- cgit v1.2.3