sudo python setup.py install
After installation run:
pidgin-irc-notify '#mychannel' '#myotherchannel' &
This will enable notifications in pidgin for the irc channels #mychannel and #myotherchannel, but no other channels you may have open. For further documentation run:
This little script uses dbus to listen for events and fires off callbacks to functions.