2010-03-17 | Paul Boddie | raw files shortlog changelog graph | Added improved test for a poll name. | default tip |
macros/VoteRecorder.py (file) |
1.1 --- a/macros/VoteRecorder.py Wed Feb 17 00:04:22 2010 +0100 1.2 +++ b/macros/VoteRecorder.py Wed Mar 17 23:36:38 2010 +0100 1.3 @@ -83,7 +83,8 @@ 1.4 args = args.split(",") 1.5 if args: 1.6 poll_name = args[0] 1.7 - else: 1.8 + 1.9 + if not args or not poll_name: 1.10 output.append(fmt.sysmsg(on=1)) 1.11 output.append(fmt.text("Please specify a poll name!")) 1.12 output.append(fmt.sysmsg(on=0))