From f962032a82c64ff120388c152f0199f35c0d64ab Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 30 Apr 2008 16:45:47 +0000 Subject: [PATCH] hacky LP bug support --- irssi-notify | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/irssi-notify b/irssi-notify index 6827ea1..9a9aac2 100755 --- a/irssi-notify +++ b/irssi-notify @@ -7,7 +7,22 @@ set -e ssh -n riva irssi-notify-server | \ sed -u 's/&/\&/g; s//\>/g' | \ while read heading message; do - [ "$heading" != . ] || continue - notify-send -i gtk-dialog-info -t 300000 -- \ - "${heading}" "${message}" + case $heading in + .) + continue + ;; + LPBUG) + bug="${message%% *}" + message="${message#* }" + imp="${message%% *}" + message="${message#* }" + notify-send -i gtk-dialog-info -t 300000 -- \ + "New LP bug $bug ($imp)" \ + "$message" + ;; + *) + notify-send -i gtk-dialog-info -t 300000 -- \ + "${heading}" "${message}" + ;; + esac done -- 2.30.2