Skip to content

Instantly share code, notes, and snippets.

@Roiseuxquentin
Last active December 30, 2020 13:42
Show Gist options
  • Save Roiseuxquentin/ec4536cad00796e7df8fbf2eb219bf27 to your computer and use it in GitHub Desktop.
Save Roiseuxquentin/ec4536cad00796e7df8fbf2eb219bf27 to your computer and use it in GitHub Desktop.
Memo IRC

IRSSI

switch to other window press

CTRL + N
Exit

Close window

/wc

Leave irssi

/quit

Clean

/clear
List
/NETWORK LIST
/list

help

/HELP NETWORK
/HELP SERVER
/HELP CHANNEL
/HELP

Setting ⚙️

~/.irssi/config
Theme

Go to https://irssi-import.github.io/themes/ and download it to ~/.irssi/

/SET theme theme_name
Auto-Connection
/server add -auto -network networkname irc.networkname.com 6667
/network add -nick nickname networkname
/channel add -auto #channel networkname
/network add -autosendcmd "/msg nickserv identify password ;wait 2000" networkname
Log Screen
/SET print_active_channel ON
/SET autolog ON
/SET autocreate_own_query ON
User information
/SET nick
/SET alternate_nick
/SET user_name
/SET real_name
Appearance
/SET timestamps ON

Show timestamps before each message.

/SET hide_text_style OFF

Hide all bolds, underlines, MIRC colors, etc.

/SET show_nickmode ON

Show the nick’s mode before nick in channels, ie. ops have <@nick>, voices <+nick> and others < nick>

/SET show_nickmode_empty ON

If the nick doesn’t have a mode, use one space. ie. ON: < nick>, OFF:

/SET show_quit_once OFF

Show quit message only once in some of the channel windows the nick was in instead of in all windows.

/SET lag_min_show 100

Show the server lag in status bar if it’s bigger than this, the unit is 1/100 of seconds (ie. the default value of 100 = 1 second).

/SET indent 10

When lines are longer than screen width they have to be split to multiple lines. This specifies how much space to put at the beginning of the line before the text begins. This can be overridden in text formats with %| format.

/SET activity_hide_targets

If you don’t want to see window activity in some certain channels or queries, list them here. For example #boringchannel =bot1 =bot2. If any highlighted text or message for you appears in that window, this setting is ignored and the activity is shown.

Nick completion

/SET completion_auto OFF

Automatically complete the nick if line begins with start of nick and the completion character. Learn to use the tab-completion instead, it’s a lot better ;)

/SET completion_char :

Completion character to use.

Ignore msg

/ignore -channels #channel * JOINS PARTS QUITS NICKS

Tools

  • mouse scrolling
 /run scriptassist
 /script install mouse.pl
 /script autorun mouse.pl

💾 Don't forget to save

/save ALL

Secure 🕵️‍

https://freenode.net/kb/answer/chat#accessing-freenode-via-tor Access to nickServ password with setting Check Up

  • set up nickServ informations
  • cloak
  • Use Irssi with proxy

PROXY

/SET use_proxy ON
/SET proxy_address irc.bouncer.org
/SET proxy_port 5000

/SET proxy_password YOUR_BNC_PASSWORD_HERE
/SET -clear proxy_string
/SET proxy_string_after conn %s %d

Set up Use these settings with HTTP proxies:

/LOAD proxy
/SET irssiproxy_password <password>
/SET irssiproxy_ports <network>=<port> ... (freenode=6667)
 or for all : /SET irssiproxy_ports *=2777

HTTP proxy Use these settings with HTTP proxies:

/SET -clear proxy_password
/EVAL SET proxy_string CONNECT %s:%d HTTP/1.0\n\n
  • Use Irssi with Tor
  torify irssi 2> /dev/null
  • Ignore pings = keep ip
  /ignore * CTCPS

SSL connection Editer le fichier de configuration de irssi : ~/.irssi/config

subl ~/.irssi/config

Ajouter dans vos serveurs de connexion ces quelques lignes

servers = (
{
address = « irc.freenode.net »;
chatnet = « freenode »;
port = « 7000 »;
use_ssl = « yes »;
ssl_verify = « yes »;
ssl_capath = « /etc/ssl/certs »;
autoconnect = « yes »;
term_type = « utf-8 »;
}
);

Si vous tentez de récupérer le CA de FreeNode vous devrez le convertir au format PEM. Pour cela faite comme suit

 cd /usr/share/ca-certificates
 mkdir gandi.net
 wget http://crt.gandi.net/GandiStandardSSLCA.crt
openssl x509 -inform der -outform pem < /usr/share/ca-certificates/gandi.net/GandiStandardSSLCA.crt > GandiStandardSSLCA.pem

ln -s /usr/share/ca-certificates/gandi.net/GandiStandardSSLCA.pem /etc/ssl/certs/GandiStandardSSLCA.pem

NICKSERV

REGISTER

/msg NickServ REGISTER password [email]

IDENTIFY

 /msg NickServ  IDENTIFY password

LOGOUT

 /msg NickServ  LOGOUT

DROP

 /msg NickServ  DROP [nickname]

SET

 Syntax: /msg NickServ  SET option parameters
Sets various nickname options:
     DISPLAY    Set the display of your group in Services
     PASSWORD   Set your nickname password
     LANGUAGE   Set the language Services will use when
                    sending messages to you
     URL        Associate a URL with your nickname
     EMAIL      Associate an E-mail address with your nickname
     ICQ        Associate an ICQ number with your nickname
     GREET      Associate a greet message with your nickname
     KILL       Turn protection on or off
     SECURE     Turn nickname security on or off
     PRIVATE    Prevent your nickname from appearing in a
                    /msg NickServ LIST
     HIDE       Hide certain pieces of nickname information
     MSG        Change the communication method of Services
     AUTOOP     Should services op you automatically.

Type /msg NickServ HELP SET option for more information on a specific option.

SET PASSWORD

 /msg NickServ  SET PASSWORD write-n3w-password

SET PRIVATE

/msg NickServ  SET PRIVATE {ON | OFF}
 Turns NickServ's privacy option on or off for your nick.
 With PRIVATE set, your nickname will not appear in
 nickname lists generated with NickServ's LIST command.
 (However, anyone who knows your nickname can still get
 information on it using the INFO command.)

INFO

 /msg NickServ  INFO nickname [ALL]

LIST

 /msg NickServ  LIST pattern

Lists all registered nicknames which match the given pattern, in nick!user@host format. Nicks with the PRIVATE option set will not be displayed.

Examples:

 LIST *!joeuser@foo.com
     Lists all nicks owned by joeuser@foo.com.

 LIST *Bot*!*@*
     Lists all registered nicks with Bot in their
     names (case insensitive).

 LIST *!*@*.bar.org
     Lists all nicks owned by users in the bar.org
     domain.

STATUS

 /msg NickServ  STATUS nickname...

Returns whether the user using the given nickname is recognized as the owner of the nickname. The response has this format:

 nickname status-code

where nickname is the nickname sent with the command, and status-code is one of the following:

 0 - no such user online or nickname not registered
 1 - user not recognized as nickname's owner
 2 - user recognized as owner via access list only
 3 - user recognized as owner via password identification

SECURE

Logging In

You'll need to log in to your nickname each time you reconnect to freenode. The simplest, and most robust, way to do this is to configure SASL, if your client supports it. If not, you can supply your login details, in the form :, as a server password and they will be forwarded to NickServ when you finish connecting.

Example:

 /connect chat.freenode.net 6667 mquin:uwhY8wgzWw22-zXs.M39p
irc.fantasya.org 6667
irc.freenode.org 6667
irc.root-me.org 6667
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment