#710 closed defect (fixed)

Multi-Line messages in OTR, text colour

Reported by: bitlbee@… Owned by: pesco
Priority: minor Milestone:
Component: OTR Version: 3.0
Keywords: Cc:
IRC client+version: Client-independent Operating System: Public server
OS version/distro:


I'm using developer revision 714 of the bitlbee libpurple Debian package.

I am talking to somebody using Pidgin with OTR.

When they send me a message, the text is green to say it is encrypted. If they send me a multi-line message, only the first line is green and the subsequent lines are in black text.

Attachments (0)

Change History (3)

comment:1 Changed at 2011-07-29T07:59:15Z by pesco

Component: BitlBeeOTR
Owner: set to pesco
Priority: normalminor
Status: newaccepted

i think this is an issue on the side of the IRC client, as we don't break the lines. we just send the color code once at the start of the message and there's not much more we can do, AFAICS.

comment:2 in reply to:  1 Changed at 2011-10-03T17:34:10Z by pesco

i see i misunderstood. we do break messages, either if lines are too long or they include explicit linebreaks. in that case irc_send_msg (irc_send.c) sends off multiple PRIVMSGs. so maybe we should indeed try to place the color code at the beginning of each line. note: the otr-encrypted channel always carries HTML. so we need to look for <br>. additionally, if i read the code of strip_html (lib/misc.c) correctly, we are not removing newline ('\n') characters from the incoming messages, so we must treat those as linebreaks as well.

Modify Ticket

as closed The owner will remain pesco.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.