reactiflux / discord-irc

Connects Discord and IRC channels by sending messages back and forth.
MIT License
1.2k stars 293 forks source link

Missing linebreaks in messages sent to IRC #375

Open alexroston opened 6 years ago

alexroston commented 6 years ago

When I write messages in Discord which contain a linebreak (see example below) it's not mapping this linebreak onto IRC. It just links the two lines together without adding some kind of whitespace.

Example: Discord:

Hello                
World

IRC:

HelloWorld

It would be great if it could generate a new message in IRC after the linebreak since linebreaks are not supported by IRC. Like this:

<user> Hello
<user> World
eXpl0it3r commented 5 years ago

I'd like to see a variation of this where the line break gets converted into a space and as such would like to have it configurable so everyone's need could be satisfied:

Discord:

Hello                
World

IRC:

<user> Hello World
Throne3d commented 4 years ago

Multi-line messages from Discord already get translated to IRC with spaces between the lines. I just tested it, and:

testing
multiline

gets translated to:

<Throne3d> testing multiline

However, this isn't super clear, so I can see why you'd want something like a linebreak instead of just a space (just, there is already a space) – we could end up more easily hitting into spam restrictions if we just do a new message for each linebreak, but that's not a super compelling reason not to do it.

I think I'd accept a PR to do this, or maybe it should be done through a paste service (#355) instead.

nCrazed commented 4 years ago

The clarity is even worse when dealing with quoted replies

DarthGandalf commented 3 years ago

Relevant: https://ircv3.net/specs/extensions/multiline

CelticMinstrel commented 3 years ago

In addition to quoted replies (blockquote syntax), code blocks suffer terribly from the collapse of line breaks. I can understand being cautious about sending multiple lines at once to avoid flooding the IRC channel, but in these cases at least, it renders the messages anywhere from difficult to impossible to read.