summaryrefslogtreecommitdiff
path: root/protocols/Twitter
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-13 22:52:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-13 22:52:01 +0000
commit41fd90bceab3de44d2b80157388e773b94265f7b (patch)
treebbd170a45c32d3ed220575adb635b2de0147078d /protocols/Twitter
parentf0e0f8df9afe935855724ae95e93093f04ca8e9a (diff)
fixes for logging
git-svn-id: http://svn.miranda-ng.org/main/trunk@404 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter')
-rw-r--r--protocols/Twitter/chat.cpp4
-rw-r--r--protocols/Twitter/proto.cpp2
2 files changed, 3 insertions, 3 deletions
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)