Linux – How to set a default nick for new irssi connections

ircirssilinuxterminalUbuntu

When trying to connect to an irc server in irssi, I get the following error:

root Erroneous Nickname: Reserved for
services

I don't know how to change the nickname before the connection is established. I'm currently connected to one server, where I have my proper nick, but when trying to connect to another server with connect irc.foo.com, which should open another connection, it's trying with the nickname root.

How do I change this nickname?

Best Answer

You can use irssi's -n option to specify your nick

irssi -n test123

or you can go to the bottom of your $HOME/.irssi/config and in the settings section, change your nick