Fix kopete-otr FTBFS

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kopete-otr@1239188 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent c54c3c07f6
commit fd5459fd2d

@ -380,7 +380,7 @@ int OtrlChatInterface::decryptMessage( TQString *msg, TQString accountId,
if( newMessage != NULL ){ if( newMessage != NULL ){
*msg = TQString::fromUtf8(newMessage); *msg = TQString::fromUtf8(newMessage);
otrl_message_free( newMessage ); otrl_message_free( newMessage );
msg->tqreplace( TQString('\n'), TQString("<br>"), false ); msg->tqreplace( TQString("\n"), TQString("<br>"), false );
} }
} }
return ignoremessage; return ignoremessage;
@ -391,7 +391,7 @@ TQString OtrlChatInterface::encryptMessage( TQString msg, TQString accountId,
int err; int err;
char * newMessage; char * newMessage;
if( otrl_proto_message_type( msg ) == OTRL_MSGTYPE_NOTOTR ){ if( otrl_proto_message_type( msg ) == OTRL_MSGTYPE_NOTOTR ){
msg.tqreplace( TQString('<'), TQString("&lt;"), false ); msg.tqreplace( TQString("<"), TQString("&lt;"), false );
err = otrl_message_sending( userstate, &ui_ops, chatSession, accountId.latin1(), protocol.latin1(), contactId.latin1(), msg.utf8(), NULL, &newMessage, NULL, NULL ); err = otrl_message_sending( userstate, &ui_ops, chatSession, accountId.latin1(), protocol.latin1(), contactId.latin1(), msg.utf8(), NULL, &newMessage, NULL, NULL );
if( err != 0 ){ if( err != 0 ){

Loading…
Cancel
Save