Skip to content

Instantly share code, notes, and snippets.

@LorbusChris
Last active December 30, 2022 19:27
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LorbusChris/d44a5dd4671796cbf8528ca133dd909b to your computer and use it in GitHub Desktop.
Save LorbusChris/d44a5dd4671796cbf8528ca133dd909b to your computer and use it in GitHub Desktop.
Matrix libera.chat IRC Bridge Setup

Matrix libera.chat IRC Bridge Setup

Change libera.chat IRC Nick

This is optional, in case you prefer your nick to be shown as something other than <matrix_nick>[m] on IRC, e.g. just <matrix_nick> (without the [m] suffix) or <libera_nick>.

Open a private chat with @appservice:libera.chat:

!nick <new_libera_nick>

Note: This does not change your Matrix nick!

Register Nick & Login

Open private chat with @NickServ:libera.chat, register your current nick on libera.chat (if applicable), and login:

Note: If you already have a registered nick on libera.chat, you can use it at this point to log in. You may want to add the nick you're using right now to your existing libera.chat account as an alias using the step below.

REGISTER <libera_password> <libera_email>
# now wait for NickServ to reply, then proceed to your mailbox for the registration code (paste from email)
VERIFY REGISTER <libera_nick> <registration_code>
# you should be getting logged in now.
# In order to log in next time send the following command, or store your password as described below to automate this step:
IDENTIFY <libera_nick> <libera_password>

To add an alias nick to your libera.chat account, change your nick to your alias as shown above and then command @NickServ:libera.chat to:

GROUP

Store Username & Password

In order to be logged back in automatically, open up the private chat with @appservice:libera.chat again, and do the following to save your username and password:

!username <libera_nick>
!storepass <libera_password>

Useful Links

@Mikaela
Copy link

Mikaela commented Jun 9, 2021

You have wrong MXID for the bridge, it's just @appservice:libera.chat without the -irc part.

Personally I would recommend https://web.libera.chat/ for registration instead, but I guess some will prefer to not leave Matrix for the registration progress.

Thanks for the writeup

@decathorpe
Copy link

I found that I also needed to send !username <libera_nick> to @appservice:libera.chat for it to be able to reconnect over SASL successfully, but that may or may not still be necessary ...

@LorbusChris
Copy link
Author

Updated. Thank you @Mikaela and @decathorpe!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment