sm00th / bitlbee-discord

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

Pins and depins displayed as edits. #69

Closed zertap closed 7 years ago

zertap commented 7 years ago

I just noticed that when a message is pinned or removed from pinned messages, the message is then outputted again with the edit prefix.

I guess this is because whether a message is pinned or not is stored in the message data itself. Thus a check if the message has been pinned or depinned and if the message text has been modified would allow you to filter out the pins and depins, or display them with their own prefix.

This is especially noticeable on channels where a lot of pins are used and removed, since weeks or months old messages suddenly get "edited" without any changes to them.

sm00th commented 7 years ago

88de238 adds this feature. It needs fetch_pinned option to be enabled to work properly.