summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-28 17:38:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-28 17:38:49 +0000
commit5e9e63c45e37917ffb0acd83832d0d8f99d01883 (patch)
tree1b674b85b1f582a13bd2a57ec73377b8989141bc /protocols/FacebookRM/src
parent7105dcf75bdd939ca52ba045bc29c536c3f7ba49 (diff)
new macroses for MS_PROTO_CHAINRECV: ProtoChainRecv, ProtoChainRecvMsg & ProtoChainRecvFile
git-svn-id: http://svn.miranda-ng.org/main/trunk@2540 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src')
-rw-r--r--protocols/FacebookRM/src/process.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index 6d4cd2b76b..fa8e814bf9 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -404,16 +404,10 @@ void FacebookProto::ProcessUnreadMessages( void* )
}
PROTORECVEVENT recv = {0};
- CCSDATA ccs = {0};
-
recv.flags = PREF_UTF;
recv.szMessage = const_cast<char*>(message_text.c_str());
recv.timestamp = timestamp;
-
- ccs.hContact = hContact;
- ccs.szProtoService = PSR_MESSAGE;
- ccs.lParam = reinterpret_cast<LPARAM>(&recv);
- CallService(MS_PROTO_CHAINRECV,0,reinterpret_cast<LPARAM>(&ccs));
+ ProtoChainRecvMsg(hContact, &recv);
pos3++;
}
@@ -461,16 +455,10 @@ void FacebookProto::ProcessMessages( void* data )
// TODO: maybe create new "receiveMsg" function and use it for offline and channel messages?
PROTORECVEVENT recv = {0};
- CCSDATA ccs = {0};
-
recv.flags = PREF_UTF;
recv.szMessage = const_cast<char*>(messages[i]->message_text.c_str());
recv.timestamp = local_timestamp ? ::time(NULL) : messages[i]->time;
-
- ccs.hContact = hContact;
- ccs.szProtoService = PSR_MESSAGE;
- ccs.lParam = reinterpret_cast<LPARAM>(&recv);
- CallService(MS_PROTO_CHAINRECV,0,reinterpret_cast<LPARAM>(&ccs));
+ ProtoChainRecvMsg(hContact, &recv);
}
delete messages[i];
}