From 41fd90bceab3de44d2b80157388e773b94265f7b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Jun 2012 22:52:01 +0000 Subject: fixes for logging git-svn-id: http://svn.miranda-ng.org/main/trunk@404 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/chat.cpp | 4 ++-- protocols/Twitter/proto.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/chat.cpp b/protocols/Twitter/chat.cpp index 9dda6790ec..d00261b41d 100644 --- a/protocols/Twitter/chat.cpp +++ b/protocols/Twitter/chat.cpp @@ -71,12 +71,12 @@ int TwitterProto::OnChatOutgoing(WPARAM wParam,LPARAM lParam) { case GC_USER_MESSAGE: { text = mir_t2a_cp(hook->ptszText,CP_UTF8); - LOG (_T("**Chat - Outgoing message: %s", text)); + LOG (_T("**Chat - Outgoing message: %s"), text); std::string tweet(text); replaceAll(tweet, "%%", "%"); // the chat plugin will turn "%" into "%%", so we have to change it back :/ - LOG (_T("**Chat - Outgoing message after replace: %s", tweet)); + LOG (_T("**Chat - Outgoing message after replace: %s"), tweet); char * varTweet; varTweet = mir_utf8encode(tweet.c_str()); diff --git a/protocols/Twitter/proto.cpp b/protocols/Twitter/proto.cpp index c1babf5c71..a3d9b24e07 100644 --- a/protocols/Twitter/proto.cpp +++ b/protocols/Twitter/proto.cpp @@ -524,7 +524,7 @@ int TwitterProto::LOG(TCHAR *fmt,...) mir_vsntprintf(text,SIZEOF(text),fmt,va); va_end(va); - return CallService(MS_NETLIB_LOG, (WPARAM)hNetlib_, (LPARAM)text); + return CallService(MS_NETLIB_LOG, (WPARAM)hNetlib_, (LPARAM)( char* )_T2A(text)); } int TwitterProto::WLOG(TCHAR* first, const wstring last) -- cgit v1.2.3