summaryrefslogtreecommitdiff
path: root/plugins/Nudge
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-27 18:53:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-27 18:53:50 +0000
commiteea8926b61889ea80c76f9fb6b5bf5d1afe6c6eb (patch)
treeb951626b03237050cdd72c501e8408ac1163e1d8 /plugins/Nudge
parentb1dc0111247ffd219585458edcf24c07c0b55ddf (diff)
old nasty perversion EVENTTYPE_STATUSCHANGE removed forever
git-svn-id: http://svn.miranda-ng.org/main/trunk@7396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Nudge')
-rw-r--r--plugins/Nudge/src/main.cpp45
-rw-r--r--plugins/Nudge/src/nudge.h2
2 files changed, 0 insertions, 47 deletions
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)
diff --git a/plugins/Nudge/src/nudge.h b/plugins/Nudge/src/nudge.h
index 8a6c39e5d5..0a8023104d 100644
--- a/plugins/Nudge/src/nudge.h
+++ b/plugins/Nudge/src/nudge.h
@@ -14,8 +14,6 @@
#define NUDGE_ACC_ST9 0x00000200 //Check (countdown) when Out to lunch
// For status log
-#define EVENTTYPE_STATUSCHANGE 25368
-
#define TEXT_LEN 1024
class CNudge