Archive

Posts Tagged ‘irssi’

Irssi Alias Magic using Perl

August 17th, 2007

Now, be aware that this could be a security issue if you let strangers onto your IRC session. They could do some cool shell tricks to break out of this exec command into the raw shell itself, but I’ll forget about that for now. I wanted an alias that would allow me to send a command to my bot to shorten a URL as well as announce the URL into the channel using some good old-fashioned ANSI Color.


/alias fu exec -o perl -e 'print "\#furryurl \${ARGV[0]}\\n"\; print "C4\$ARGV[1]" if(length(\$ARGV[1]))' -- "$0" "$1-"

Note: The C in C4\$ARGV[1] is really a CONTROL-C.

Run this in irssi, and you’ll get some sweet output:


# Upon running /fu http://www.google.com ralree
# The text for 'ralree' is actually colored red on output.
01:59:03 < hardwarehank> #furryurl http://www.google.com
01:59:04 < hardwarehank> ralree
01:59:04 < rufis> hardwarehank: http://www.furryurl.com/hx

I’m so happy!


Uncategorized , ,

Turn annoying chatter into Kenny!

March 29th, 2007

This is the best idea for an irssi plugin ever.


13:46:15 < wolfeon[Kenny]> fmmppf, Mff'fpmmpp mmm pfpfmfmppfmmfmppffmffppfppp
13:46:25 < wolfeon[Kenny]> mfffmm Pppfmfppmmmm Pppfmfppmmmm mfmmmmffm
                           ppfpffmffmpppppfmpmppmpm?
13:46:32 < wolfeon[Kenny]> pmmfmffmmfmp pmfmfffmmfmpmpppppmffpppmfm fmpppf mmm
                           Mpppppmfmpmfmfffmmmfp
                           fmppffmmmpppfmmpmfmmmfmpmffppfppp
13:46:51 < wolfeon[Kenny]> fmpmfpmpppffmpp mmmpffmpp 2 ppmmmmpmfmpp
                           fmmmffpppmfmmpppfffmm mmmfmm fmpmfpmpp
                           ppfpffmffmfmmffpppmmmpmf Pfffmffmmfmmmffmmmppp
13:56:09 < hardwarehank> wow.
13:56:13 < hardwarehank> thats awesome

To use:

  • Drop this in .irssi/scripts/autorun

svn co http://modzer0.cs.uaf.edu/repos/hank/code/perl/irssi/kenny.pl
  • Restart irssi


Uncategorized ,

How to ignore people on IRC

March 11th, 2007

I love irssi:


/ignore wolfeon
/ignore -regexp -pattern "wolfeon" *
/save

Now, I have wonderful silence. This will prevent me from lashing out again.


Uncategorized , ,

Setting up message level ignores in irssi

March 3rd, 2007

Yes! I finally figured out how to set my ignores up in irssi’s config! It’s this easy:


ignores = (
  { mask = "help"; level = "ALL"; },
  { level = "JOINS PARTS QUITS MODES"; channels = ( "&bitlbee" ); }
);

Ah finally – now I just see messages. No more scrolling!

Uncategorized , ,

Coloring with irssi!

February 25th, 2007

Oh boy! Font coloring in irssi is FUN!

This pretty much covers it. Hope you learned something!

Uncategorized , ,