Package: centerim
Version: 4.22.2-1
Severity: normal

When I rename one of the contacts in centerim, then when calling
external scripts with the help of ~/.centerim/external
in variable $CONTACT_NICK there will be always placed the name
used before renaming.

i.e. if some user calls himself 'Cheetah', and I rename him as user
'Yury' in my list, then external nevertheless will be called with
$CONTACT_NICK set as 'Cheetah'.

Here is an example of my external:

Notificator
%action Notificator

event msg
proto all
status all
options stdin

%exec
#!/bin/sh
msg=`perl -pi -e 's/ //g; s/\\s+/ /;'|iconv -c -f koi8-r -t utf-8`

notify_client.pl -p 9986 -t 6 -s "Message from $CONTACT_NICK/$EVENT_NETWORK" -- 
"$msg "
notify_client.pl -p 9987 -t 6 -s "Message from $CONTACT_NICK/$EVENT_NETWORK" -- 
"$msg "

Attachment: signature.asc
Description: Digital signature

Reply via email to