summaryrefslogtreecommitdiff
path: root/metacontacts/meta_services.c
diff options
context:
space:
mode:
Diffstat (limited to 'metacontacts/meta_services.c')
-rw-r--r--metacontacts/meta_services.c5
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);