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/IcqOscarJ/src/icq_xtraz.cpp | |
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/IcqOscarJ/src/icq_xtraz.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_xtraz.cpp | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/protocols/IcqOscarJ/src/icq_xtraz.cpp b/protocols/IcqOscarJ/src/icq_xtraz.cpp index f712cf6f87..be851f35d6 100644 --- a/protocols/IcqOscarJ/src/icq_xtraz.cpp +++ b/protocols/IcqOscarJ/src/icq_xtraz.cpp @@ -371,21 +371,14 @@ void CIcqProto::handleXtrazData(DWORD dwUin, DWORD dwMID, DWORD dwMID2, WORD wCo strcat(szWork, szNum);
// Create message to notify user
- {
- CCSDATA ccs;
- PROTORECVEVENT pre = {0};
- int bAdded;
-
- ccs.szProtoService = PSR_MESSAGE;
- ccs.hContact = HContactFromUIN(dwUin, &bAdded);
- ccs.wParam = 0;
- ccs.lParam = (LPARAM)⪯
- pre.timestamp = time(NULL);
- pre.szMessage = szWork;
- pre.flags = PREF_UTF;
-
- CallService(MS_PROTO_CHAINRECV, 0, (LPARAM)&ccs);
- }
+ PROTORECVEVENT pre = {0};
+ pre.timestamp = time(NULL);
+ pre.szMessage = szWork;
+ pre.flags = PREF_UTF;
+
+ int bAdded;
+ ProtoChainRecvMsg( HContactFromUIN(dwUin, &bAdded), &pre);
+
SAFE_FREE(&szWork);
}
else
|