GIT.Harvie.CZ
/
mirrors
/
libpurple-core-answerscripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6b1b8
)
simplified recoding of entities for notify-send
author
Tomas Mudrunka
<tomas@mudrunka.cz>
Sun, 22 Feb 2015 17:05:58 +0000
(18:05 +0100)
committer
Tomas Mudrunka
<tomas@mudrunka.cz>
Sun, 22 Feb 2015 17:05:58 +0000
(18:05 +0100)
purple/answerscripts.d/00-notify.sh
patch
|
blob
|
blame
|
history
diff --git
a/purple/answerscripts.d/00-notify.sh
b/purple/answerscripts.d/00-notify.sh
index 504959f709b5a3ca7289405bcd1545fba0b8038f..dc7033d7b8bf628757fe5ae646118209a8e0308e 100755
(executable)
--- a/
purple/answerscripts.d/00-notify.sh
+++ b/
purple/answerscripts.d/00-notify.sh
@@
-1,4
+1,4
@@
#!/bin/sh
#Show notification for each incomming message
-
which recode >/dev/null && ANSW_MSG="$(echo "$ANSW_MSG" | recode ..html
)"
+
ANSW_MSG="$(echo "$ANSW_MSG" | sed -e 's/&/&\;/g;s/</\<\;/g;s/>/\>/g'
)"
notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$ANSW_MSG"
This page took
0.146377 seconds
and
4
git commands to generate.