]> jfr.im git - irc/freenode/web-7.0.git/blame - content/news/2021-01-21-matrix-bridge-realname.md
Update the people page (#521)
[irc/freenode/web-7.0.git] / content / news / 2021-01-21-matrix-bridge-realname.md
CommitLineData
47f7578e 1---
2author: jess
3date: 2021-01-21T20:00:00
4slug: matrix-bridge-realname
5title: Changes to realnames of matrix.org bridged users
6category: announcements
7category: technical
8---
9
10[matrix.org](https://matrix.org/) runs a bridge (matrix-appservice-irc) from
11their Matrix homeserver to freenode that allow Matrix users from any
12homeserver that federates with matrix.org to join channels on freenode and
13intermingle with the normal IRC userbase. These users have their Matrix User
14Id (username and homeserver, e.g. `@jess:freenode.net`) put in the realname
15field of their IRC connection.
16
17Over time, the need to differentiate users by which homeserver they are using
18has arisen for multiple reasons, and we've worked with the matrix.org bridge
19operators to better format Matrix User Ids to suit the limited space provided
20by IRC realnames.
21
22Realnames pose a slight problem for this usage; the maximum length for a
23Matrix User Id is 255 characters, whereas the maximum length for an IRC
24realname is 50 characters and things longer than that get truncated, which
25means if people have a Matrix username of 50 characters, it will truncate off
26the entirety of their homeserver.
27
28The solution we came up with for this has been to reverse the order of
29username and homeserver, and then reverse the order of domain name parts and
30truncate that at 30 characters, which means the most significant parts of a
31homeserver's domain name comes at the start of a realname. For example,
32`@jess:freenode.net` becomes `net.freenode:jess`. If a homeserver is truncated
33to 30 characters, a `>` is appended prior to the `:` -
34`@jess:subdomaaaaaaaaaain.freenode.net` would become
35`net.freenode.subdomaaaaaaaaaai>:jess`.
36
37We'd like to extend deep gratitude to the operators of the matrix.org bridge
38for handling and implementing our change request quickly to suit a
39contemporary need, and we'd like to remind users that they can message staff
40at any time if they have any questions about the above changes.