Mercurial > ~mikael > mcabber > hg
comparison mcabber/contrib/filter_statusmsg.py @ 1201:c31b1c41929c
Minor changes
- ChangeLog update
- contrib/filter_statusmsg.py (comment update, Frank Zschockelt)
- Small translation fix in FR files
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 27 Apr 2007 23:05:41 +0200 |
parents | 71422d407a34 |
children |
comparison
equal
deleted
inserted
replaced
1200:d313bf25b9d5 | 1201:c31b1c41929c |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # This script can be used to delete status messages from history files. | 2 # This script can be used to delete status messages from history files. |
3 # | 3 # |
4 # If you want to clean all histories from status messages: | 4 # If you want to clean all histories from status messages: |
5 # $ for i in ~/.mcabber/histo/*; do ./filter_statusmsg.py $i > foo; mv foo $i; done | 5 # $ for i in ~/.mcabber/histo/*; do if [[ ! -h $i ]]; then ./filter_statusmsg.py $i > foo; mv foo $i; fi; done |
6 # | 6 # |
7 # Frank Zschockelt, 05.01.2007 | 7 # Frank Zschockelt, 05.01.2007 |
8 import sys | 8 import sys |
9 | 9 |
10 if(len(sys.argv) != 2): | 10 if(len(sys.argv) != 2): |