Irssi

From Segfault
Jump to: navigation, search

.irssi/config

#
# ~/.irssi/config
#
servers = (
        { address = "efnet.xs4all.nl";   chatnet = "EFNet";    port = "7000"; use_ssl = "yes"; ssl_verify = "no"; },
        { address = "chat.freenode.net"; chatnet = "Freenode"; port = "7000"; use_ssl = "yes"; ssl_verify = "yes"; ssl_capath = "/etc/ssl/certs"; },
        { address = "irc.oftc.net";      chatnet = "OFTC";     port = "6697"; use_ssl = "yes"; ssl_verify = "yes"; ssl_capath = "/etc/ssl/certs"; },
        { address = "irc.fu-berlin.de";  chatnet = "IRCnet";   port = "6667"; use_ssl = "no"; },
        { address = "irc.stealth.net";   chatnet = "IRCnet";   port = "6667"; use_ssl = "no"; },
        { address = "silc.silcnet.org";  chatnet = "SILC";     port = "706"; },
);

chatnets = {
        Freenode  = { type = "IRC"; max_kicks = "1"; max_msgs = "3"; max_whois = "10"; autosendcmd = "/msg nickserv identify jdoe PaSsWord; wait 2000"; };
        OFTC      = { type = "IRC"; max_kicks = "1"; max_msgs = "3"; max_whois = "10"; autosendcmd = "/msg nickserv identify PaSsWord jdoe; wait 2000"; };
        IRCnet    = { type = "IRC"; max_kicks = "1"; max_msgs = "3"; max_whois = "10"; };
        SILC      = { type = "SILC"; };
};

channels = (
        { name = "#debian"; chatnet = "Freenode"; autojoin = "no"; },
        { name = "#kernelnewbies"; chatnet = "OFTC"; autojoin = "no"; },
);

aliases = {
        LEAVE = "part";
        EXIT  = "quit";
        WC    = "window close";
};

settings = {
        core = {
                real_name = "John Doe";
                user_name = "jdoe";
                     nick = "jdoe";
#          alternate_nick = "jondoe";
        settings_autosave = "no";
         timestamp_format = "%H:%M:%S ";
        };

        "fe-common/core" = {
                 autolog = "yes";
            autolog_path = "~/.irssi/log/$tag/${0}/${0}-%Y-%m-%d";
           autolog_level = "all -crap -clientcrap -ctcps";
        };
};

ignores = ( { level = "JOINS PARTS QUITS"; } );

.irssi/startup

/SCRIPT load quitrand.pl
/CONNECT Freenode
/JOIN #debian

Note: instead of using ~/.irssi/startup, we could have put ~/.irssi/scripts/quitrand.pl into ~/.irssi/scripts/autorun/ to have it automatically loaded. Also, instead of using /join we could just set autojoin=yes in the channels() item.

TODO

  • redirect /joins to another window?
  • use Growl to notify for messages

Configurations

Links