--- a/mcabber/contrib/events/eventcmd.osd Thu Dec 11 20:19:37 2014 +0100
+++ b/mcabber/contrib/events/eventcmd.osd Sun Feb 15 12:12:22 2015 +0100
@@ -17,7 +17,7 @@
# Note that the 4th argument is only provided for incoming messages
# and when 'event_log_files' is set.
-if [ $event = "MSG" ]; then
+if [ "$event" = "MSG" ]; then
case "$arg1" in
IN)
# Incoming message from buddy $arg2
@@ -38,7 +38,7 @@
# Outgoing message for buddy $arg2
;;
esac
-elif [ $event = "STATUS" ]; then
+elif [ "$event" = "STATUS" ]; then
# Buddy $arg2 status is $arg1 (_, O, I, F, D, N, A)
echo "<$arg2> has changed status to: [$arg1]" | $XOSD_CMD_PIPE > /dev/null 2>&1
echo > /dev/null