summaryrefslogtreecommitdiff
path: root/stopspam/src/events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stopspam/src/events.cpp')
-rw-r--r--stopspam/src/events.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/stopspam/src/events.cpp b/stopspam/src/events.cpp
index fa73a07..74d4195 100644
--- a/stopspam/src/events.cpp
+++ b/stopspam/src/events.cpp
@@ -46,13 +46,15 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam)
#ifdef _UNICODE
AuthRepl=mir_u2a(variables_parse(plSets->AuthRepl.Get(), hcntct).c_str());
#else
- AuthRepl=mir_strdup( variables_parse(plSets->AuthRepl.Get(), hcntct).c_str());
+ AuthRepl=variables_parse(plSets->AuthRepl.Get(), hcntct).c_str();
#endif
// ...send message
std::string allowService = dbei.szModule;
allowService += PS_AUTHDENY;
CallService(allowService.c_str(), (WPARAM)hDbEvent, (LPARAM)AuthRepl);
- mir_free(AuthRepl);
+ #ifdef _UNICODE
+ mir_free(AuthRepl);
+ #endif
DBWriteContactSettingByte(hcntct, "CList", "NotOnList", 1);
DBWriteContactSettingByte(hcntct, "CList", "Hidden", 1);
if (!plSets->HistLog.Get())