sm00th / bitlbee-discord

Bitlbee plugin for Discord (http://discordapp.com)
GNU General Public License v2.0
290 stars 27 forks source link

incoming_me_translation ignored for multi-part messages #78

Open digitalcircuit opened 7 years ago

digitalcircuit commented 7 years ago

In brief

Steps to reproduce

In the following procedure, <Enter> symbolizes pressing the Enter key, <Shift-Enter> symbolizes holding Shift while pressing Enter.

  1. Add a Discord account, server, and open a channel or direct message with your Testing Associate
  2. Ensure incoming_me_translation is set to true.
  3. Have your Testing Associate send a message through the Discord UI like this:

Exhibit A

/me does a thing!<Enter>
  1. Now, have your Testing Associate send a message like this:

Exhibit B

/me does some action on the first line<Shift-Enter>
And continues it on the next.<Enter>
  1. Again, have your Testing Associate send a message like this:

Exhibit C

*does a manually-formatted action on the first line*<Shift-Enter>
And some regular text on the next.<Enter>
  1. Lastly, have your Testing Associate send a fourth message like this:

Exhibit D

/me does an action<Shift-Enter>
/me does another action<Enter>
  1. Observe the results.

Results

Expected

Exhibit A

-*- TestingAssociate does a thing!

Exhibit B

-*- TestingAssociate does some action on the first line
-*- TestingAssociate And continues it on the next.

Exhibit C

-*- TestingAssociate does a manually-formatted action on the first line
<TestingAssociate> And some regular text on the next.

Exhibit D I'm not sure how this one is supposed to render. It's kind-of nonsensical from Discord.

Actual

Exhibit A

-*- TestingAssociate does a thing!

Exhibit B

<TestingAssociate> _does some action on the first line
<TestingAssociate> And continues it on the next._

Exhibit C

<TestingAssociate> *does a manually-formatted action on the first line*
<TestingAssociate> And some regular text on the next.

Exhibit D

<TestingAssociate> _does an action
-*- TestingAssociate does another action_