Mercurial > ~mikael > mcabber > hg
comparison mcabber/contrib/events/eventcmd @ 1846:048bcde98fc6
Update contrib eventcmd sample script
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 28 Mar 2010 19:28:21 +0200 |
parents | 3bf11085c6a5 |
children | cca19ce862ef |
comparison
equal
deleted
inserted
replaced
1845:2c2a706fcd50 | 1846:048bcde98fc6 |
---|---|
42 esac | 42 esac |
43 elif [ $event = "STATUS" ]; then | 43 elif [ $event = "STATUS" ]; then |
44 # Buddy $arg2 status is $arg1 (_, O, I, F, D, N, A) | 44 # Buddy $arg2 status is $arg1 (_, O, I, F, D, N, A) |
45 echo > /dev/null | 45 echo > /dev/null |
46 elif [ $event = "UNREAD" ]; then | 46 elif [ $event = "UNREAD" ]; then |
47 # $arg1 is the number of unread buffers | 47 # $arg1 contains 4 numbers separated with space chars: |
48 # Nr of unread buffers, nr of unread buffers with attention sign, | |
49 # nr of MUC unread buffers, nr of MUC unread buffers with attention sign. | |
48 echo > /dev/null | 50 echo > /dev/null |
49 fi | 51 fi |