summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metacontacts/meta_services.c5
-rw-r--r--metacontacts/version.h2
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