42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.52k stars 616 forks source link

Incorrect encoding on irc->discord messages #396

Closed nevivurn closed 6 years ago

nevivurn commented 6 years ago

Environment

Version: version: version: 1.9.0 4b0bc6d

Operating system: Debian 9. 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux

Please describe the expected behavior.

When sending a message such as (box-drawing character preceded by space, not a pipe character. I can't seem to properly write this, but there should be a space preceding the character.) I should see that exact message appear on discord.

Please describe the actual behavior.

On the discord side, I see the message в”‚. It's not that every instance of this character is mangled, messages like test │b are sent along just fine. <│> is also mangled. Other than that, I have not managed to figure out what the requirements for triggering this are.

Any steps to reproduce the behavior?

  1. Send the message (should be preceded by a space) from IRC.
  2. Look at discord.

Please add your configuration file

RemoteNickFormat="<{NICK}> "

[discord]          
        [discord.deathtoll]                     
                Token="<snip>"
                EditDisable=true
                Server="Death Toll Scans"         
[irc]                                         
        [irc.irchighway]         
                Server="irc.irchighway.net:6697"
                UseTLS=true                    
                SkipTLSVerify=true             
                Nick="SilentWatcher"                
                UseSASL=true
                NickservNick="SilentWatcher"
                NickServPassword="<snip>"
                IgnoreNicks="Ekaterina"

[[gateway]]
        name="deathtoll"
        enable=true
                [[gateway.inout]]
                        account="discord.deathtoll"
                        channel="public"
                [[gateway.inout]]
                        account="irc.irchighway"
                        channel="#deathtoll"
42wim commented 6 years ago

Could you run with -debug ? That way you can see what messages are exactly send to and from the bridges

42wim commented 6 years ago

Closed because no activity, feel free to reopen.