X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=purple%2Fanswerscripts.d%2F00-notify.sh;h=6d0117d1f9a98b2fbc789f0a3e2e3ae25fe8085b;hp=7e6f8db5bd586ebcac4ab7d2ad9992f2279878f4;hb=d66a447d3cac8a9a40225a421b67fab1ebb1742c;hpb=24aef432f43946d7d722cf429467c06d6ca2465b diff --git a/purple/answerscripts.d/00-notify.sh b/purple/answerscripts.d/00-notify.sh index 7e6f8db..6d0117d 100755 --- a/purple/answerscripts.d/00-notify.sh +++ b/purple/answerscripts.d/00-notify.sh @@ -1,3 +1,4 @@ #!/bin/sh #Show notification for each incomming message -notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$(echo "$ANSW_MSG" | sed -e 's/&/&/g')" +which recode >/dev/null && ANSW_MSG="$(echo "$ANSW_MSG" | recode ascii..html)" +notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$ANSW_MSG"