summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-06-27 06:40:24 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-06-27 06:40:24 +0000
commit22fd6afd21ea20156d906797fc82d96aba51d084 (patch)
tree1ae0278e49c1ff921dba8eb5a358d19c220aff7f
parent8dcd519961e3e370f17719abb3b3f7420ffe468a (diff)
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
-rw-r--r--MirandaPlugin/Templates/1033/filter.cpp5
1 files changed, 4 insertions, 1 deletions
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);