diff mcabber/contrib/eventcmd @ 355:c5a7a7273986

Add some external actions Now the external command can get the following parameters: - MSG IN jid - MSG OUT jid - STATUS $S jid ($S == status uppercase letter: O, I, F, D, N, A, _)
author Mikael Berthe <mikael@lilotux.net>
date Fri, 22 Jul 2005 21:45:45 +0100
parents e315566f09b0
children 2fd528c49173
line wrap: on
line diff
--- a/mcabber/contrib/eventcmd	Fri Jul 22 20:21:41 2005 +0100
+++ b/mcabber/contrib/eventcmd	Fri Jul 22 21:45:45 2005 +0100
@@ -26,5 +26,8 @@
       # Outgoing message for buddy $arg2
       ;;
   esac
+elif [ $event == "STATUS" ]; then
+  # Buddy $arg2 status is $arg1 (_, O, I, F, D, N, A)
+  echo > /dev/null
 fi