From 81cb552e5a96b888c48502feadcc514b5d8069d3 Mon Sep 17 00:00:00 2001 From: sje Date: Tue, 10 Jul 2007 15:47:41 +0000 Subject: 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 --- MySpace/proto.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'MySpace/proto.cpp') 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); -- cgit v1.2.3