diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-14 14:47:42 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-14 14:47:42 +0000 |
commit | 9d5d961b038d87f779952be0298ca73681c14a58 (patch) | |
tree | c94d959aa59475758fa8c78ec2a0ad212e815355 /metacontacts/meta_services.c | |
parent | c2ac569fb77143a6834048913ecd45e9af0d9e66 (diff) |
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
Diffstat (limited to 'metacontacts/meta_services.c')
-rw-r--r-- | metacontacts/meta_services.c | 5 |
1 files changed, 4 insertions, 1 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);
|