From 8c4afbb588909d8f2619abcd18d5fce8cb2e983a Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Tue, 24 Mar 2015 14:48:46 +0100 Subject: [PATCH] better notification for chatrooms --- purple/answerscripts.d/00-notify.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.30.2