X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=purple%2Fanswerscripts.d%2F00-notify.sh;h=f0d7ee117eee6dfa7650e141a47652eb39393dfb;hb=86db576a0462bfc3147ae1f59a71a7e0b4964109;hp=dc7033d7b8bf628757fe5ae646118209a8e0308e;hpb=c3eb58d2228fa552ce59aa84c8fc38b5dd842116;p=mirrors%2Flibpurple-core-answerscripts.git diff --git a/purple/answerscripts.d/00-notify.sh b/purple/answerscripts.d/00-notify.sh index dc7033d..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 ANSW_MSG="$(echo "$ANSW_MSG" | sed -e 's/&/&\;/g;s//\>/g')" -notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$ANSW_MSG" +[ -n "$ANSW_R_ROOM_NAME" ] && room="$ANSW_R_ROOM_NAME:" || room='' +notify-send -i pidgin "$ANSW_PROTOCOL:$room$ANSW_R_ALIAS" "$ANSW_MSG"