summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-04-02 23:12:07 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-04-02 23:12:07 +0300
commit5dd498f7a3bdb9b91725a8270f9000f4260a7178 (patch)
tree46cef08513191e8263b931da5632000610875bc4
parent77a5832f098cb1267405d7336543831462f56ab7 (diff)
unicode flag
-rw-r--r--stopspam.cpp4
1 files changed, 2 insertions, 2 deletions
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());