shout icon indicating copy to clipboard operation
shout copied to clipboard

Colours appearing incorrectly inside angle brackets

Open Alligator opened this issue 8 years ago • 3 comments

We are using discord-irc to bridge our discord and IRC channels. discord-irc automatically colours nicknames in the IRC messages it sends to match their discord colour, but in shout these appear incorrectly, for example:

image

However, if I refresh the colours appear correctly:

image

Here is the raw IRC message, as captured from weechat (host/channel removed):

:db!~db@host PRIVMSG #channel :<\x0310alligator\x0F> test

I am assuming this is something to do with detecting nicks enclosed in <>, as the span ends up with a data-chan attribute, but as you can see the markup is pretty wild:

<span class="inline-channel" role="button" tabindex="0" data-chan="<<span">&lt;<span< span=""> class="irc-fg10"&gt;alligator</span<></span>

Alligator avatar Jun 14 '16 11:06 Alligator

Would you be open to testing The Lounge with this setup? If it's an issue there, it would be good to know before 2.0.0 releases.

dgw avatar Jun 14 '16 11:06 dgw

@dgw I don't see this issue in the lounge on version 1.5.0 or 2.0.0-pre.2

Alligator avatar Jun 14 '16 13:06 Alligator

@Alligator That's good news! Shout isn't maintained very much these days, which is why its readme points to The Lounge.

dgw avatar Jun 14 '16 22:06 dgw