From: Colin Watson Date: Wed, 30 Apr 2008 16:45:47 +0000 (+0000) Subject: hacky LP bug support X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=commitdiff_plain;h=f962032a82c64ff120388c152f0199f35c0d64ab hacky LP bug support --- 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