Feature request: codeblocks and whitespace handling #15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
Relaying code between IRC and Discord has always been a pain with the JS bridge, so I'd like to propose another way of handling this.
Discord -> IRC
When a codeblocked message is sent in a Discord channel, the bridge removes the leading and trailing backticks (`) and sends the message, line by line, to IRC. This should be optional in the config, because the members have to be trusted not to spam the IRC channel.
IRC -> Discord
When a message in IRC starts with whitespace, the bridge wraps the message in single backticks (`) to prevent Discord from doing the usual whitespace trim. It also compresses text visually, making it easier to see.
Fixed by three most recent commits