summaryrefslogtreecommitdiff
path: root/MirOTR/svcs_proto.cpp
diff options
context:
space:
mode:
authoradmin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a>2010-09-07 20:56:58 +0000
committeradmin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a>2010-09-07 20:56:58 +0000
commitfabf8cf6652880668158c0160181055705fa947e (patch)
tree02865290dac031f7e64e4f4bf3a0107f34b1886b /MirOTR/svcs_proto.cpp
parent3ab5329069479c9951ee1bf8ac26af73df500045 (diff)
- add missing files
- beginning SMP implementation git-svn-id: http://mirotr.googlecode.com/svn/trunk@4 eced67a3-f377-a0ae-92ae-d6de1850b05a
Diffstat (limited to 'MirOTR/svcs_proto.cpp')
-rw-r--r--MirOTR/svcs_proto.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/MirOTR/svcs_proto.cpp b/MirOTR/svcs_proto.cpp
index b46b33f..8bbb553 100644
--- a/MirOTR/svcs_proto.cpp
+++ b/MirOTR/svcs_proto.cpp
@@ -29,7 +29,9 @@ int SVC_OTRSendMessage(WPARAM wParam,LPARAM lParam){
oldmessage_utf = oldmessage;
} else if(ccs->wParam & PREF_UNICODE) {
//TODO: check if this is correct or oldmessage[strlen(oldmessage)+1] is needed
- oldmessage_utf = mir_utf8encodeW((wchar_t*)oldmessage);
+ //oldmessage_utf = mir_utf8encodeW((wchar_t*)oldmessage);
+ //should be the thing with strlen
+ oldmessage_utf = mir_utf8encodeW((wchar_t*)&oldmessage[strlen(oldmessage)+1]);
} else {
oldmessage_utf = mir_utf8encode(oldmessage);
}
@@ -138,7 +140,6 @@ int SVC_OTRRecvMessage(WPARAM wParam,LPARAM lParam){
#endif
if (pre->flags & PREF_BYPASS_OTR) { // bypass for our inline messages
- //TODO: check, whether this can be removed (then OTR status info should be still saved)
return CallService(MS_PROTO_CHAINRECV, wParam, lParam);
}