Irssi ignore_oc module

A module for the Irssi IRC client to ignore privmsgs from users that are not in one of the channels you are, like spambots, people using less powerful clients than Irssi automatically sending you passwords for some bot that has the same nick like you on another network, etc..

It is based on the idea of the ignoreoc.pl script by Erkki Seppälä.

It however

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Install

ignore_oc requires GLib version 2.2 or greater to compile and that you compiled Irssi using it.

Compile and install like this, replacing /usr/local/src/irssi with the path to the Irssi source on your system:

export IRSSI=/usr/local/src/irssi
gcc ignore_oc.c -Wall -g -o ~/.irssi/modules/libignore_oc.so -shared -I$IRSSI -I$IRSSI/src -I$IRSSI/src/core -I$IRSSI/src/irc/core -DHAVE_CONFIG_H `pkg-config --cflags glib-2.0`

In Irssi then do:

/LOAD ignore_oc

If you get an error saying undefined symbol: g_hash_table_new_full, you did not compile Irssi using GLib version 2.2 or greater and have to recompile it.

To make Irssi automatically load it on startup, add the above line to ~/.irssi/startup.

The boolean setting ignore_oc_send_notice allows you to disable sending a notice to the user telling him that his message is ignored, the string setting ignore_oc_notice allows you customize this string.

The boolean setting ignore_oc_allow_bypass allows you to not ignore messages which have a certain prefix, the string setting ignore_oc_bypass_prefix allows you customize this prefix.

Download

Download Irssi ignore_oc (GnuPG signature)

View Irssi ignore_oc source online.

Arch

ignore_oc is maintained with the GNU arch revision control system, the archive is signed with my GnuPG key.

Register archive and get configs

tla register-archive http://arch.elho.net/pub/elho@elho.net--irssi-ignore-oc
tla get elho@elho.net--irssi-ignore-oc/dists--irssi-ignore-oc irssi-ignore_oc
cd irssi-ignore_oc

Retrieve latest development version

tla build-config head

Retrieve release X.Y

tla build-config release-X.Y

History

See the ChangeLog file.

Contact

Please report any bugs to irssi-ignore_oc@elho.net.