sm00th / bitlbee-discord

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

Unicode server names can break bitlbee config if prefix is cut off #85

Closed LennyPenny closed 7 years ago

LennyPenny commented 7 years ago

When I joined a discord channel with a unicode name everything worked fine until I restarted bitlbee. Then loading the bitlbee config file in /var/lib/bitlbee/ broke with me having to manually remove the channel from the file to fix the issue.

LennyPenny commented 7 years ago

So @dequis found out that this was due to a unicode emoji being cut in half by server_prefix_len.

Fixing this will not be trivial as a unicode squence could always start in the last char of the prefix.