From 22fd6afd21ea20156d906797fc82d96aba51d084 Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 27 Jun 2007 06:40:24 +0000 Subject: added condition in filter send/recv for utf8 messages git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@213 4f64403b-2f21-0410-a795-97e2b3489a10 --- MirandaPlugin/Templates/1033/filter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MirandaPlugin/Templates/1033/filter.cpp b/MirandaPlugin/Templates/1033/filter.cpp index e390508..07e9991 100644 --- a/MirandaPlugin/Templates/1033/filter.cpp +++ b/MirandaPlugin/Templates/1033/filter.cpp @@ -8,6 +8,8 @@ int FilterSendMessage(WPARAM wParam, LPARAM lParam) { // TODO: process 'message' and/or 'messagew' below if(ccs->wParam & PREF_UNICODE) { wchar_t *messagew = (wchar_t *)&message[strlen(message)+1]; + } else if(ccs->wParam & PREF_UTF) { + // message is utf8 encoded - you can use mir_utf8decode (m_system.h) to make it wide } else { } @@ -30,7 +32,8 @@ int FilterRecvMessage(WPARAM wParam, LPARAM lParam) { // TODO: process 'message' and/or 'messagew' below if(pre->flags & PREF_UNICODE) { wchar_t *messagew = (wchar_t *)&message[strlen(message)+1]; - } else { + } else if(pre->flags & PREF_UTF) {{ + // message is utf8 encoded - you can use mir_utf8decode (m_system.h) to make it wide } return CallService(MS_PROTO_CHAINRECV, wParam, lParam); -- cgit v1.2.3