From 71b72fcfba5cbfc960ea92f670036982f18aea69 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Mar 2015 13:59:25 +0000 Subject: - removed debugging using MessageBox - massive Windows-specific code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@12467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirOTR/src/svcs_proto.cpp | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'plugins/MirOTR/src') diff --git a/plugins/MirOTR/src/svcs_proto.cpp b/plugins/MirOTR/src/svcs_proto.cpp index 99592f354b..545f5574b7 100644 --- a/plugins/MirOTR/src/svcs_proto.cpp +++ b/plugins/MirOTR/src/svcs_proto.cpp @@ -100,16 +100,8 @@ INT_PTR SVC_OTRSendMessage(WPARAM wParam,LPARAM lParam){ } INT_PTR ret = CallService(MS_PROTO_CHAINSEND, wParam, lParam); -#ifdef _DEBUG - if(ccs->wParam & PREF_UNICODE) - { - TCHAR *mes = mir_a2t((const char *)ccs->lParam); - MessageBox(0, mes, _T("OTR - sending raw message"), MB_OK); - mir_free(mes); - } - else - MessageBoxA(0, (char *)ccs->lParam, ("OTR - sending raw message"), MB_OK); -#endif + DEBUGOUTA("OTR - sending raw message: "); + DEBUGOUTA((char *)ccs->lParam); // reset to original values ccs->lParam = (LPARAM)oldmessage; @@ -126,21 +118,13 @@ INT_PTR SVC_OTRSendMessage(WPARAM wParam,LPARAM lParam){ #define MESSAGE_PREFIX_LEN 6 */ -INT_PTR SVC_OTRRecvMessage(WPARAM wParam,LPARAM lParam){ - //PUShowMessage("OTR Recv Message", SM_NOTIFY); +INT_PTR SVC_OTRRecvMessage(WPARAM wParam,LPARAM lParam) +{ CCSDATA *ccs = (CCSDATA *) lParam; PROTORECVEVENT *pre = (PROTORECVEVENT *) ccs->lParam; -#ifdef _DEBUG - if(pre->flags & PREF_UNICODE) - { - TCHAR *mes = mir_a2t(pre->szMessage); - MessageBox(0, mes, _T("OTR - receiving message"), MB_OK); - mir_free(mes); - } - else - MessageBoxA(0, (char *)pre->szMessage, ("OTR - receiving message"), MB_OK); -#endif + DEBUGOUTA("OTR - receiving message: "); + DEBUGOUTA((char *)ccs->lParam); if (pre->flags & PREF_BYPASS_OTR) { // bypass for our inline messages return CallService(MS_PROTO_CHAINRECV, wParam, lParam); -- cgit v1.2.3