Skip to content

Instantly share code, notes, and snippets.

@markhibberd
Created April 4, 2013 23:55
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save markhibberd/5315470 to your computer and use it in GitHub Desktop.
Save markhibberd/5315470 to your computer and use it in GitHub Desktop.
irssi-xmpp

Installation

FreeBSD

portmaster irc/irssi
portmaster irc/irssi-xmpp

OS X

brew install irssi
brew install loudmouth
git clone git@github.com:weiss/irssi-xmpp.git
cd irssi-xmpp
LDFLAGS='-flat_namespace -undefined warning -fPIC'; export LDFLAGS
make PREDIX=/usr/local/Cellar/irssi/0.8.15
make user-install

Configuration at runtime

/load xmpp
# gmail aaccont
/xmpconnect -host talk.google.com blah@gmail.com sekrit
# google apps domain
/xmpconnect -host talk.google.com blah@me.com sekrit
# general xmpp server (like openfire/ejabberd)
/xmpconnect -host jabber.me.com blah@jabber.me.com sekrit
# connect to a room (note, if you use openfire will generally be prefixed with conference)
/join room@conference.jabber.me.com
# see http://cybione.org/cgi-bin/cvsweb/~checkout~/irssi-xmpp/docs/GENERAL?cvsroot=irssi-xmpp&only_with_tag=REL051 for more commands

Configuration via ~/.irssi/config

Add to ~/.irssi/startup

/load xmpp

In ~/.irssi/config --

Add to or create servers sections:

servers = (
  {
    address = "talk.google.com";
    chatnet = "GTalk";
    password = "sekrit";
    autoconnect = "yes";
  },
  {
    address = "jabber.me.com";
    chatnet = "ME";
    password = "sekrit";
    autoconnect = "yes";
  }
)

Add to or create chatnets section:

chatnets = {
  GTalk = {
    type = "XMPP";
    nick = "name@gmail.com";
  };
  ME = {
    type = "XMPP";
    nick = "name@jabber.me.com";
  };
};  
@dlo
Copy link

dlo commented May 23, 2013

Never mind my previous (deleted) comment. :)

These instructions work great. My mistake was not using the git repo referenced here for irssi-xmpp.

@richsoni
Copy link

richsoni commented Aug 9, 2013

this worked perfectly. made the process very easy. Much appreciated

@rizo
Copy link

rizo commented Aug 29, 2013

I had to specify the pkg path before compiling the xmpp plugin:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/

@wbbradley
Copy link

I used the git repo: git clone http://cybione.org/git/irssi-xmpp.git specified on http://cybione.org/~irssi-xmpp/ and it worked well. Thanks!

@robertzk
Copy link

s/PREDIX/PREFIX please

@joshfriend
Copy link

I kept getting linker errors about libidn. The homebrew bottle for loudmouth had an outdated pkg-config .pc file that referenced an old version of libidn. I fixed it by forcing homebrew to compile loudmouth from source:

$ brew install loudmouth --build-from-source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment