sm00th / bitlbee-discord

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

fix for error when displaying username of a renamed user #32

Closed mumixam closed 8 years ago

mumixam commented 8 years ago

A somewhat new feature to discord allows users the option to rename themselves on a server by server basis. When a user using the web or desktop app mentions a renamed user a ! is prepended to their user id and looks something like this (via bitlbee) <@!123456789> test too after adjusting the regex pattern it shows the username thats linked to the user's id (not the renamed nick) @mumixam test too

when desktop and webapp would display @renamed test too

This may not the ideal fix you want but its alot better than a big integer. This bug was found and fixed by a member of beecord

sm00th commented 8 years ago

Thanks for the patch. There still might be issues with outgoing mentions of "renamed" users, but this should do it for the incoming ones.