diff options
-rw-r--r-- | stopspam.cpp | 4 |
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());
|