Using /trigger in irssi to bypass color filters

Yes, we all either love or hate the coloring system. Personally, I think it’s perfectly fine in a social setting, but obnoxious in formal areas. It’s almost as if you just decided to talk in “gangsta” dialect during an important meeting.

Thankfully IRC rooms usually don’t host important meetings. Unfortunately many rooms disable coloring. I thought, wouldn’t it be fun if you could get the clients to understand a whole different color language to get around that.

And I did. Anything that says ]# gets translated into the corresponding Ctrl+# combination (last table on this page). Here’s how:

  1. Use irssi. Yes, you have to. It’s one of the most customizable clients, as you can tell just by this blog post. I love it. You’ll love it. We’ll all hug trees. *wink*
  2. Grab the irssi trigger script and stick it in your .irssi/scripts folder. I recommend you symlink it into the .irssi/scripts/autoload directory as well so it’s always running every time you launch irssi.
  3. Once you’ve got it in your folder, and you’ve loaded irssi, run the following command to make sure the trigger script is active:
    /script load trigger
  4. OK, now type in the following and hit ENTER:
    /trigger add -all -regexp '\](\d+)' -replace '\x03$1'
  5. Done! While your outgoing messages won’t be colorful for you, your recipients will see the color (edit: as long as they also have this trigger), and other messages sent to you will be colorized if they use the ]# syntax.

If you want the bold, underline, etc., you can add those pretty easily as well. However, colors are good enough for me.

Post a comment or leave a trackback: Trackback URL.


  • Burbruee  On August 24, 2009 at 6:01 pm

    I’ve loaded the trigger script and added the trigger, but I can’t get it to work.

    I went into an empty channel with irssi+trigger and also a mIRC client to check if it works.

    In my irssi chatbox I tested something like:

    ]5 Hello

    and pressed enter, but on the mIRC client it showed up as exactly that, including the “]5” part, and no colors.

    Trigger was added correctly.
    > Trigger 1 added: -all -regexp ‘\](\d+)’ -replace ‘\x03$1’

    Am I doing it right?


    • javaJake  On August 25, 2009 at 11:35 am

      The trigger only occurs when someone else sends you a colored message with the ]X syntax.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: