From 76b283677bd66b4f41289bc211504834bb0f0513 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 24 Sep 2013 11:14:26 +0000 Subject: PROTORECVEVENT::pCustomData field added to add user-defined into to incoming messages git-svn-id: http://svn.miranda-ng.org/main/trunk@6206 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_thread.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'protocols/Tlen/src') diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp index f9fe2ef01e..a08f3763a8 100644 --- a/protocols/Tlen/src/tlen_thread.cpp +++ b/protocols/Tlen/src/tlen_thread.cpp @@ -586,7 +586,6 @@ static void TlenProcessAvatar(XmlNode* node, ThreadData *info) static void TlenProcessMessage(XmlNode *node, ThreadData *info) { HANDLE hContact; - PROTORECVEVENT recv; XmlNode *bodyNode, *subjectNode, *xNode, *n; char *from, *type, *nick, *p, *localMessage, *idStr; DWORD msgTime; @@ -703,7 +702,7 @@ static void TlenProcessMessage(XmlNode *node, ThreadData *info) msgTime = time(NULL); } } - recv.flags = 0; + PROTORECVEVENT recv = { 0 }; recv.timestamp = (DWORD) msgTime; recv.szMessage = localMessage; recv.lParam = 0; @@ -952,7 +951,6 @@ static void TlenProcessIq(XmlNode *node, ThreadData *info) static void TlenProcessW(XmlNode *node, ThreadData *info) { HANDLE hContact; - PROTORECVEVENT recv; char *f, *e, *s, *body; char *str, *localMessage; int strSize; @@ -984,10 +982,9 @@ static void TlenProcessW(XmlNode *node, ThreadData *info) localMessage = TlenTextDecode(str); - recv.flags = 0; + PROTORECVEVENT recv = { 0 }; recv.timestamp = (DWORD) time(NULL); recv.szMessage = localMessage; - recv.lParam = 0; ProtoChainRecvMsg(hContact, &recv); mir_free(localMessage); @@ -1001,7 +998,6 @@ static void TlenProcessW(XmlNode *node, ThreadData *info) static void TlenProcessM(XmlNode *node, ThreadData *info) { HANDLE hContact; - PROTORECVEVENT recv; char *f;//, *from;//username char *tp;//typing start/stop char *p, *n, *r, *s, *str, *localMessage; @@ -1071,10 +1067,10 @@ static void TlenProcessM(XmlNode *node, ThreadData *info) db_set_b(hContact, info->proto->m_szModuleName, "bChat", TRUE); mir_free(str); localMessage = TlenTextDecode(bNode->text); - recv.flags = 0; + + PROTORECVEVENT recv = { 0 }; recv.timestamp = (DWORD) timestamp; recv.szMessage = localMessage; - recv.lParam = 0; ProtoChainRecvMsg(hContact, &recv); mir_free(localMessage); } else { -- cgit v1.2.3