diff --git a/README.md b/README.md index 71f503165076a5258d20986aba2fd332a725a947..ea31891cd4a5154351f8ac818fce9b1a3aef6d78 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Matrix Discord Bridge A bridge between [Matrix](http://matrix.org/) and [Discord](https://discordapp.com/). -Currently the bridge is in **Beta** and quite usable for everyday +Currently the bridge is in **Beta** and quite usable for everyday bridging, with one or two bugs cropping up.  @@ -50,11 +50,8 @@ Please also be aware that this is an unoffical project worked on in my (Half-Sho #### 3PID Protocol Support This bridge support searching for rooms within networks via the 3pid system -used in clients like [Riot](https://riot.im). However, it requires a small -manual change to your registration file. Change the end of -`discord-registration.yaml` to `protocols: ["discord"]`` and restart both your -bridge and synapse. Any new servers/guilds you bridge should show up in the -network list on Riot and other clients. +used in clients like [Riot](https://riot.im). Any new servers/guilds you bridge +should show up in the network list on Riot and other clients. ### Setting up Discord diff --git a/src/discordas.ts b/src/discordas.ts index 7465806b1ff067af434bc566207ad3ff3464d996..f313a7de816811f311420801d5a8a562367cfb51 100644 --- a/src/discordas.ts +++ b/src/discordas.ts @@ -33,6 +33,7 @@ function generateRegistration(reg, callback) { reg.addRegexPattern("users", "@_discord_.*", true); reg.addRegexPattern("aliases", "#_discord_.*", true); reg.setRateLimited(false); + reg.setProtocols(["discord"]); callback(reg); }