diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-28 17:38:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-28 17:38:49 +0000 |
commit | 5e9e63c45e37917ffb0acd83832d0d8f99d01883 (patch) | |
tree | 1b674b85b1f582a13bd2a57ec73377b8989141bc /protocols/Twitter | |
parent | 7105dcf75bdd939ca52ba045bc29c536c3f7ba49 (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/Twitter')
-rw-r--r-- | protocols/Twitter/src/connection.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp index 443bddc77f..fe18ae5c76 100644 --- a/protocols/Twitter/src/connection.cpp +++ b/protocols/Twitter/src/connection.cpp @@ -657,19 +657,12 @@ void TwitterProto::UpdateMessages(bool pre_read) HANDLE hContact = AddToClientList(i->username.c_str(),"");
PROTORECVEVENT recv = {};
- CCSDATA ccs = {};
-
recv.flags = PREF_UTF;
if(pre_read)
recv.flags |= PREF_CREATEREAD;
recv.szMessage = const_cast<char*>(i->status.text.c_str());
recv.timestamp = static_cast<DWORD>(i->status.time);
-
- ccs.hContact = hContact;
- ccs.szProtoService = PSR_MESSAGE;
- ccs.wParam = ID_STATUS_ONLINE;
- ccs.lParam = reinterpret_cast<LPARAM>(&recv);
- CallService(MS_PROTO_CHAINRECV,0,reinterpret_cast<LPARAM>(&ccs));
+ ProtoChainRecvMsg(hContact, &recv);
}
db_pod_set(0,m_szModuleName,TWITTER_KEY_DMSINCEID,dm_since_id_);
|