summaryrefslogtreecommitdiff
path: root/protocols/Twitter/src/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Twitter/src/chat.cpp')
-rw-r--r--protocols/Twitter/src/chat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp
index c9a7f319ee..dd2219e6f7 100644
--- a/protocols/Twitter/src/chat.cpp
+++ b/protocols/Twitter/src/chat.cpp
@@ -69,7 +69,7 @@ int TwitterProto::OnChatOutgoing(WPARAM wParam,LPARAM lParam)
case GC_USER_MESSAGE:
LOG ( _T("**Chat - Outgoing message: %s"), hook->ptszText);
{
- MCBuf text( mir_utf8encodeT(hook->ptszText));
+ ptrA text( mir_utf8encodeT(hook->ptszText));
std::string tweet(text);
replaceAll(tweet, "%%", "%"); // the chat plugin will turn "%" into "%%", so we have to change it back :/
@@ -81,7 +81,7 @@ int TwitterProto::OnChatOutgoing(WPARAM wParam,LPARAM lParam)
case GC_USER_PRIVMESS:
{
- MCBuf text( mir_t2a(hook->ptszUID));
+ ptrA text( mir_t2a(hook->ptszUID));
CallService(MS_MSG_SENDMESSAGE, WPARAM(UsernameToHContact(text)), 0);
}
break;