chiark / gitweb /
ubuntu-daily: flip -a semantics to mean --authenticated, not --anonymous
[bin.git] / irssi-notify
index 9a9aac2938a23b4de5b9fb815c3d12934227143f..de6acf713c113d774af1d8460869e160f6d98956 100755 (executable)
@@ -5,7 +5,7 @@ set -e
 #   http://thorstenl.blogspot.com/2007/01/thls-irssi-notification-script.html
 
 ssh -n riva irssi-notify-server | \
-       sed -u 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' | \
+       sed -u 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/\\/\\\\/g' | \
        while read heading message; do
                case $heading in
                        .)
@@ -16,12 +16,12 @@ ssh -n riva irssi-notify-server | \
                                message="${message#* }"
                                imp="${message%% *}"
                                message="${message#* }"
-                               notify-send -i gtk-dialog-info -t 300000 -- \
+                               notify-send -i gtk-dialog-info -t 0 -- \
                                        "New LP bug $bug ($imp)" \
                                        "<a href=\"https://launchpad.net/bugs/$bug\">$message</a>"
                                ;;
                        *)
-                               notify-send -i gtk-dialog-info -t 300000 -- \
+                               notify-send -i gtk-dialog-info -t 30000 -- \
                                        "${heading}" "${message}"
                                ;;
                esac