summaryrefslogtreecommitdiff
path: root/MySpace/proto.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-10 15:47:41 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-10 15:47:41 +0000
commit81cb552e5a96b888c48502feadcc514b5d8069d3 (patch)
treedf9ba8521ccfbe195cc3ed020fdc9556a41de8fc /MySpace/proto.cpp
parentffa0fa4f142eb6ee5f919a96b10f36363c511b16 (diff)
use undocumented 'buddy message 200' (which official client ignores) for miranda & myspace plugin version info
implement adding a 'sent message' so you can see when you send a zap git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@270 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'MySpace/proto.cpp')
-rw-r--r--MySpace/proto.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/MySpace/proto.cpp b/MySpace/proto.cpp
index 9dc0815..8dcd810 100644
--- a/MySpace/proto.cpp
+++ b/MySpace/proto.cpp
@@ -166,10 +166,8 @@ int ProtoRecvMessage(WPARAM wParam, LPARAM lParam) {
dbei.flags = (pre->flags & PREF_CREATEREAD) ? DBEF_READ : 0;
dbei.flags |= (pre->flags & PREF_RTL) ? DBEF_RTL : 0;
dbei.flags |= (pre->flags & PREF_UTF) ? DBEF_UTF : 0;
- dbei.eventType = EVENTTYPE_MESSAGE;
+ dbei.eventType = pre->lParam;
dbei.cbBlob = strlen(pre->szMessage) + 1;
- if ( pre->flags & PREF_UNICODE )
- dbei.cbBlob *= ( sizeof( wchar_t )+1 );
dbei.pBlob = (PBYTE)pre->szMessage;
CallService(MS_DB_EVENT_ADD, (WPARAM)ccs->hContact, (LPARAM)&dbei);