-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mod_discord: Remove discriminator from username format.
Change the IRC username of Discord relay users from "username#discriminator" to "Discord/username". This is done for two reasons: First, Discord has deprecated discriminators, so most of them are now 0, and they no longer serve much purpose. Formerly, they were needed for uniqueness, but as that is no longer the case, they don't make sense to keep in usernames. Secondly, mod_slack prefixes usernames with a relay prefix, to avoid any potentially conflicts with other relay modules, or IRC itself. Previously, # served to differentiate Discord users from users from IRC or from other relay modules, since users could not sign up with a # in their usernames. However, since this part is now removed, a mechanism is still needed to try to enforce uniqueness, and so we just adopt the convention in other relay modules by prefixing "Discord/" to usernames, to make this entirely unambiguous. Just using this relay prefix works fine for now, since mod_discord only supports one guild, unlike mod_slack which does not have a workspace limit, and thus allows for customized relay prefixes.
- Loading branch information
1 parent
b5bbf8f
commit 6538b4e
Showing
1 changed file
with
76 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters