GIT.Harvie.CZ
/
mirrors
/
libpurple-core-answerscripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better notification for chatrooms
[mirrors/libpurple-core-answerscripts.git]
/
purple
/
answerscripts.d
/
00-notify.sh
diff --git
a/purple/answerscripts.d/00-notify.sh
b/purple/answerscripts.d/00-notify.sh
index 7e6f8db5bd586ebcac4ab7d2ad9992f2279878f4..f0d7ee117eee6dfa7650e141a47652eb39393dfb 100755
(executable)
--- a/
purple/answerscripts.d/00-notify.sh
+++ b/
purple/answerscripts.d/00-notify.sh
@@
-1,3
+1,5
@@
#!/bin/sh
#Show notification for each incomming message
#!/bin/sh
#Show notification for each incomming message
-notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$(echo "$ANSW_MSG" | sed -e 's/&/&/g')"
+ANSW_MSG="$(echo "$ANSW_MSG" | sed -e 's/&/&\;/g;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"
This page took
0.099598 seconds
and
4
git commands to generate.