X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=purple%2Fanswerscripts.d%2F00-notify.sh;h=f0d7ee117eee6dfa7650e141a47652eb39393dfb;hb=8c4afbb588909d8f2619abcd18d5fce8cb2e983a;hp=504959f709b5a3ca7289405bcd1545fba0b8038f;hpb=fc6b1b84823278e134efaf56536ab58eb205de2c;p=mirrors%2Flibpurple-core-answerscripts.git diff --git a/purple/answerscripts.d/00-notify.sh b/purple/answerscripts.d/00-notify.sh index 504959f..f0d7ee1 100755 --- a/purple/answerscripts.d/00-notify.sh +++ b/purple/answerscripts.d/00-notify.sh @@ -1,4 +1,5 @@ #!/bin/sh #Show notification for each incomming message -which recode >/dev/null && ANSW_MSG="$(echo "$ANSW_MSG" | recode ..html)" -notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$ANSW_MSG" +ANSW_MSG="$(echo "$ANSW_MSG" | sed -e 's/&/&\;/g;s//\>/g')" +[ -n "$ANSW_R_ROOM_NAME" ] && room="$ANSW_R_ROOM_NAME:" || room='' +notify-send -i pidgin "$ANSW_PROTOCOL:$room$ANSW_R_ALIAS" "$ANSW_MSG"