irssi auto-connect and auto-identify

There are loads of irssi scripts which do this, but the truth is irssi actually supports these things very well out of the box. Here’s how.

Start up irssi, then:

/connect irc.freenode.net
/nick MyIRCNick
/SERVER ADD -auto -network freenode irc.freenode.net 6667 <password>

(you may have to shutdown and restart irssi at this point for it to recognize the network name “freenode” in the next step)

/CHANNEL ADD -auto #ubuntu freenode

Another method of auto-identifying is seen below. The above is generally preferred.

/NETWORK ADD -autosendcmd "/^msg NickServ IDENTIFY password;wait 2000" freenode

14 Comments

  • Shai Deshe says:

    Won’t work, you need to add a network object before you can attach a channel object to it.
    Would work if you bump “/NETWORK ADD -autosendcmd “/^msg NickServ IDENTIFY password;wait 2000″ freenode” right above the “/server” line.

    Very useful other then that, thank you very much.

    • Orioa says:

      i was wondering if you could add /NETWORK ADD -autosendcmd β€œ/^msg NickServ IDENTIFY password;wait 2000β€³ freenode” right to config file if so how would you put it in exactly..ty

  • Dave says:

    Shai Deshe was wrong – the “/server add” line creates a network-object named “freenode” (the “-network freenode” option) related to the server and port. As soon as that network object is created, channels can be assigned to it.

    The “/network add” command allows you to set network-specific options.

  • Bill says:

    it works! I used it and it works great
    now I am a genius

  • Spot on, worked a treat. Helps if you run irssi like this:
    irssi -c irc.freenode.net -n nick

    Then it logs in perfectly πŸ˜€

  • Perfect!! πŸ™‚

  • dan1t0 says:

    thanks!!!!

  • Coolmax says:

    Anybody knows how to make that irssi identify to nickserv before joining channel after reconnect to server (e.g. after time-out)?

  • Rajath says:

    Worked like a charm. Thank you πŸ™‚

  • Lucky says:

    for those who battle with the tut, just use a connection string for every login like this:

    Example: /connect -CONNECTIONTYPE IPADDRESS/HOSTNAME PORTNUMBER PASSWORDHERE USERNAMEHERE

    Simulated: /connect -ssl 47.55.108.103 6627 819ff!RTg%amX YouMonkey:)

  • Meride!l says:

    Thank you !

  • chip says:

    On developer mode on my Chromebook have irssi install and setup to use sassl abn connect to freenode via tls encryption on 6679.

Leave a Reply

Your email address will not be published. Required fields are marked *