How do I set a default nick for new irssi connections?

17

2

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?

Richard Rodriguez

Posted 2011-05-22T00:13:05.970

Reputation: 1 676

2I don't think it's a good idea to run IRSSI from root. – kzh – 2011-06-15T22:08:34.027

Answers

29

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

freethinker

Posted 2011-05-22T00:13:05.970

Reputation: 3 160

8

You can use the command: irssi -n nickname1234

and to change the default nickname after you are connected

/SET default_nick = , defaults to user_name

/SET alternate_nick = , defaults to _

/SET user_name = , defaults to your login name

/SET real_name = , taken from /etc/passwd by default

Good luck¬

holyoffice

Posted 2011-05-22T00:13:05.970

Reputation: 89

0

in terminal go to home and cd into .irssi make file config.txt

paste the following

servers = (
  {
    address = "irc.freenode.net";
    chatnet = "freenode";
    port = "6667";
    use_ssl = "no";
    ssl_verify = "no";
    autoconnect = "yes";
  }
);

chatnets = {
  Freenode = {
    type = "IRC";
    autosendcmd = "/msg nickserv identify yourname yourpass";
  };
};

channels = (
  { name = "#test-channel"; chatnet = "Freenode"; autojoin = "Yes"; }
  { name = "#private-test-channel"; chatnet = "Freenode"; password = "yourpass"; autojoin = "Yes"; }
);

settings = {
  core = { real_name = "real name"; user_name = "user name"; nick = "yourusername"; };
  "fe-text" = { actlist_sort = "refnum"; term_force_colors = "yes"; scrollback_time = "7day "; };
  "fe-common/core" = { theme = "default"; };
};

Ahmed Younes

Posted 2011-05-22T00:13:05.970

Reputation: 101

There is no reason to not use TLS, copy pasting settings without understanding them is a generally bad idea. I'll edit the answer – Yarek T – 2019-12-06T10:14:43.003