diff options
-rw-r--r-- | protocols/Twitter/chat.cpp | 4 | ||||
-rw-r--r-- | protocols/Twitter/proto.cpp | 2 |
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)
|