cICQ

cICQ is a small Perl script for the Irssi IRC client. It checks on incoming events in the Centericq IM client.
cICQ checks the log file of Centericq in a given time intervall for new events and notifies about them in Irssi. You can enable certain events to be notified about.

I have not tested this script with CenterIM, which is a fork of CenterICQ. But I think it's very likely to work as well once you have adjusted the 'centericq_folder' appropriately.

Settings

All settings can be set configuring the source file itself or by using Irssi's 'set' command.
In order for this script to work you need to have the 'Detailed IM events' option enabled! You can do this within the 'CenterICQ config options'.

Name Description Default Value
centericq_folder Path to CenterICQ's user base directory (usually hidden in your home directory). /home/user/.centericq/
centericq_log Path to Centericq's log file. This log file is only available if you have enabled 'Detailed IM events'! /home/user/.centericq/log
refresh_time The intervall time of cICQ to check for events. (in seconds) 5
ignore_time cICQ will ignore incoming messages from a contact for ignore_time seconds after having received a message. This prevents flooding Irssi with notifications while chatting with someone. 300
check_for_messages Define this 'ON' (in Irssi) or '1' (source file) if you want to be notified about incoming messages. If not, define it 'OFF' or '0'. ON / 1
authorization_requests Define this 'ON' (in Irssi) or '1' (source file) if you want to be notified about incoming authorization requests. If not, define it 'OFF' or '0'.
This might be annoying if you get a lot of spam messages.
OFF / 0
status_change Define this 'ON' (in Irssi) or '1' (source file) if you want to be notified about contacts changing their status. If not, define it 'OFF' or '0'.
I think this is exceptionally annoying. If you need this, you should try out the focuson command.
OFF / 0
ignore_not_on_list Ignore messages from users that are not on your contact list. ON / 1
message_color Define the color of notifying messages. You can find color codes here:
http://www.irssi.org/documentation/formats
%b (blue)

Commands

cICQ defines a few commands which can be executed within Irssi by typing /command (just as a usual Irssi command..)

Command Arguments What it does
cicq Prints the usage message to the server window.
focuson nick1 nick2 .. nickn Turns cICQ's focus on the given nick(s). That means, that you will be notified about everything these contacts are doing, like messages, status changes, file transfers, ... Handy if you are waiting for a contact to come online.
No argument (nick) turns the focuson function off.
Use '?' as parameter to list all currently watched contacts.
nickn is the nick that appears on your contact list, not the user id.

Download

cicq.pl (Version 0.2)

cicq.pl (Version 0.1)

Todo

Version 0.3

Written by Hannes 'epzilon' Forster.
Give a feedback.