summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-24 11:14:26 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-24 11:14:26 +0000
commit76b283677bd66b4f41289bc211504834bb0f0513 (patch)
treecd23344d78bd5457f9f95176807fd1fa260df530 /protocols/Tlen/src
parent55cfa8393ae222c2b48d7dfcf1d493021ff5bb47 (diff)
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
Diffstat (limited to 'protocols/Tlen/src')
-rw-r--r--protocols/Tlen/src/tlen_thread.cpp12
1 files changed, 4 insertions, 8 deletions
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 {