diff mcabber/contrib/events/eventcmd @ 1444:3bf11085c6a5

New external "UNREAD" event (suggested by Viacheslav Chumushuk) Thanks to Viacheslav for the suggestion and sample patch.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 02 Mar 2008 11:14:42 +0100
parents fcef5d34b7d4
children 048bcde98fc6
line wrap: on
line diff
--- a/mcabber/contrib/events/eventcmd	Fri Feb 29 14:55:55 2008 +0100
+++ b/mcabber/contrib/events/eventcmd	Sun Mar 02 11:14:42 2008 +0100
@@ -43,5 +43,7 @@
 elif [ $event = "STATUS" ]; then
   # Buddy $arg2 status is $arg1 (_, O, I, F, D, N, A)
   echo > /dev/null
+elif [ $event = "UNREAD" ]; then
+  # $arg1 is the number of unread buffers
+  echo > /dev/null
 fi
-