X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=purple%2Fanswerscripts.d%2F00-notify.sh;h=504959f709b5a3ca7289405bcd1545fba0b8038f;hb=fc6b1b84823278e134efaf56536ab58eb205de2c;hp=7e6f8db5bd586ebcac4ab7d2ad9992f2279878f4;hpb=24aef432f43946d7d722cf429467c06d6ca2465b;p=mirrors%2Flibpurple-core-answerscripts.git diff --git a/purple/answerscripts.d/00-notify.sh b/purple/answerscripts.d/00-notify.sh index 7e6f8db..504959f 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 ..html)" +notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$ANSW_MSG"