From 5dd498f7a3bdb9b91725a8270f9000f4260a7178 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 2 Apr 2010 23:12:07 +0300 Subject: unicode flag --- stopspam.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stopspam.cpp') diff --git a/stopspam.cpp b/stopspam.cpp index 07b3c3f..15621ae 100644 --- a/stopspam.cpp +++ b/stopspam.cpp @@ -71,7 +71,7 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam) } if(msg) // int a = CallService(allowService.c_str(), (WPARAM)hDbEvent, (LPARAM)(variables_parse(gbAuthRepl, hcntct).c_str())); - int a = CallContactService(hcntct, PSS_MESSAGE, PREF_UTF, (LPARAM)(variables_parse(gbAuthRepl, hcntct).c_str())); + CallContactService(hcntct, PSS_MESSAGE, PREF_TCHAR, (LPARAM)(variables_parse(gbAuthRepl, hcntct).c_str())); delete dbei.pBlob; return 1; @@ -193,7 +193,7 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) { #ifdef _UNICODE char * buf=mir_utf8encodeW(variables_parse(gbCongratulation, hContact).c_str()); - CallContactService(hContact, PSS_MESSAGE, PREF_UTF, (LPARAM)buf); + CallContactService(hContact, PSS_MESSAGE, PREF_TCHAR, (LPARAM)buf); mir_free(buf); #else CallContactService(hContact, PSS_MESSAGE, 0, (LPARAM)GetCongratulation().c_str()); -- cgit v1.2.3