Universal-Omega / IRC-Discord-Relay

Open Software License 3.0
2 stars 4 forks source link

Don't include discord discriminator if the user has switched to the new username system #18

Closed MacFan4000 closed 1 year ago

MacFan4000 commented 1 year ago

The new username system on discord gets rid of discriminators. When you switch to the new format, you discriminator shows on IRC as 0000, and this doesn't need to be shown. The discriminator is still shown for those who haven't switched to the new format yet.

We simply check if the discriminator is 0000 only include the discriminator if it isn't that.

Universal-Omega commented 1 year ago

I'll review this tomorrow.

Universal-Omega commented 1 year ago

This is a messy way of doing this, since they are being removed anyway, I just removed the discriminators entirely, in a different patch.