From 9d5d961b038d87f779952be0298ca73681c14a58 Mon Sep 17 00:00:00 2001 From: sje Date: Sat, 14 Jul 2007 14:47:42 +0000 Subject: add db flags to history events for rtl and utf8 git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@285 4f64403b-2f21-0410-a795-97e2b3489a10 --- metacontacts/meta_services.c | 5 ++++- metacontacts/version.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/metacontacts/meta_services.c b/metacontacts/meta_services.c index 1a974dc..796e2f8 100644 --- a/metacontacts/meta_services.c +++ b/metacontacts/meta_services.c @@ -287,6 +287,8 @@ int MetaFilter_SendMessage(WPARAM wParam,LPARAM lParam) dbei.flags = DBEF_SENT; dbei.timestamp = time(NULL); dbei.eventType = EVENTTYPE_MESSAGE; + if(ccs->wParam & PREF_RTL) dbei.flags |= DBEF_RTL; + if(ccs->wParam & PREF_UTF) dbei.flags |= DBEF_UTF; dbei.cbBlob = strlen((char *)ccs->lParam) + 1; if ( ccs->wParam & PREF_UNICODE ) dbei.cbBlob *= ( sizeof( wchar_t )+1 ); @@ -499,8 +501,9 @@ int MetaFilter_RecvMessage(WPARAM wParam,LPARAM lParam) if(pre->flags & PREF_UTF) dbei.flags |= DBEF_UTF; dbei.eventType = EVENTTYPE_MESSAGE; dbei.cbBlob = strlen(pre->szMessage) + 1; - if ( pre->flags & PREF_UNICODE ) + if ( pre->flags & PREF_UNICODE ) { dbei.cbBlob *= ( sizeof( wchar_t )+1 ); + } dbei.pBlob = (PBYTE) pre->szMessage; CallService(MS_DB_EVENT_ADD, (WPARAM) hMeta, (LPARAM)&dbei); diff --git a/metacontacts/version.h b/metacontacts/version.h index 3b2e37d..f29c211 100644 --- a/metacontacts/version.h +++ b/metacontacts/version.h @@ -5,7 +5,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 13 #define __RELEASE_NUM 0 -#define __BUILD_NUM 5 +#define __BUILD_NUM 6 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM -- cgit v1.2.3