From eea8926b61889ea80c76f9fb6b5bf5d1afe6c6eb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Dec 2013 18:53:50 +0000 Subject: old nasty perversion EVENTTYPE_STATUSCHANGE removed forever git-svn-id: http://svn.miranda-ng.org/main/trunk@7396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Nudge/src/main.cpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'plugins/Nudge/src/main.cpp') diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index ab1eb4ad89..2bc4ddbfbb 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -463,55 +463,10 @@ void Nudge_ShowPopup(CNudgeElement n, HANDLE hContact, TCHAR * Message) void Nudge_SentStatus(CNudgeElement n, HANDLE hContact) { - DBEVENTINFO NudgeEvent = { 0 }; - - NudgeEvent.cbSize = sizeof(NudgeEvent); - NudgeEvent.szModule = GetContactProto(hContact); - - char *buff = mir_utf8encodeT(n.senText); - NudgeEvent.flags = DBEF_SENT | DBEF_UTF; - - NudgeEvent.timestamp = ( DWORD )time(NULL); - NudgeEvent.eventType = EVENTTYPE_STATUSCHANGE; - NudgeEvent.cbBlob = (DWORD)strlen(buff) + 1; - NudgeEvent.pBlob = ( PBYTE ) buff; - - INT_PTR res = CallService(MS_MC_GETMETACONTACT, (WPARAM)hContact, 0 ); //try to retrieve the metacontact if some - if(res != CALLSERVICE_NOTFOUND) { - HANDLE hMetaContact = (HANDLE) res; - if(hMetaContact != NULL) //metacontact - db_event_add(hMetaContact, &NudgeEvent); - } - - db_event_add(hContact, &NudgeEvent); } void Nudge_ShowStatus(CNudgeElement n, HANDLE hContact, DWORD timestamp) { - DBEVENTINFO NudgeEvent = { 0 }; - - NudgeEvent.cbSize = sizeof(NudgeEvent); - NudgeEvent.szModule = GetContactProto(hContact); - - char *buff = mir_utf8encodeT(n.recText); - NudgeEvent.flags = DBEF_UTF; - - NudgeEvent.timestamp = timestamp; - NudgeEvent.eventType = EVENTTYPE_STATUSCHANGE; - NudgeEvent.cbBlob = (DWORD)strlen(buff) + 1; - NudgeEvent.pBlob = ( PBYTE ) buff; - - - INT_PTR res = CallService(MS_MC_GETMETACONTACT, (WPARAM)hContact, 0 ); //try to retrieve the metacontact if some - if(res != CALLSERVICE_NOTFOUND) { - HANDLE hMetaContact = (HANDLE) res; - if(hMetaContact != NULL) { //metacontact - db_event_add(hMetaContact, &NudgeEvent); - NudgeEvent.flags |= DBEF_READ; - } - } - - db_event_add(hContact, &NudgeEvent); } HANDLE Nudge_GethContact(HANDLE hContact) -- cgit v1.2.3