Git Product home page Git Product logo

irssi-passwd's Introduction

Discontinued!

This repo is not being maintained anymore. Further development is happening here: https://github.com/gandalf3/irssi-passwd

irssi-passwd

the script receives passwords from other scripts (like gnomekeyring.py) and uses them to connect to a server or in any command

warning

The passwd.pl script needs a modified version if irssi. Apply the patch irssi-connection-set-key.patch, then compile and install.

cd path/to/irssi_src
patch -p1 < path/to/irssi-connection-set-key.patch
./autogen.sh
make
sudo make install

install

move passwd.pl to ~/.irssi/scripts create a symlink in ~/.irssi/scripts/autorun/ to ~/.irssi/scripts/passwd.pl

configure

The default config file is ~/.irssi/passwd and can be changed with the setting config_file in the passwd section. In the config file you can store a command which will print the password for the password_id to stdout. The password_id ([a-zA-Z0-9_\-]+) and the command are seperated by a : (colon), each pair is seperated by a newline:

example_id      : echo "mypassword"
example_keyring : python ~/.irssi/scripts/gnomekeyring.py mykeyring nameofthekey

use

/passwd

/passwd password_id irc_command

will replace the string <password> in irc_command with the password received from the command associated with password_id. irc_command is executed at the end.

/passwd example_id /echo <password>

The script looks up the command associated with example_id in the config file (echo "mypassword"), execute it and replace <password> with the output ("mypassword"). The result (/echo "mypassword") is executed.

/passwd example_keyring /msg NickServ identify <password>

Here the script will identify your nick with the password from the gnome keyring.

irssi server config

If the script is loaded it will automatically replace <password:password_id> in the server config with the value received from to command associated with password_id when the server is connecting.

{
  address = "irc.freenode.net";
  chatnet = "Freenode";
  password = "user:<password:example_id>";
  autoconnect = "yes";
}

Assuming the following config, irssi will automatically connect to irc.freenode.net, replace "user:<password:example_id>" with "user:mypassword" and login.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.