From bfd4a9f492b107987f70256c1869c124b5c9026a Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Mon, 23 Aug 2004 19:08:18 +0000 Subject: [PATCH] Fixed a stupid error message. (Closes: #1009681) --- plugins/Todo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/Todo.py b/plugins/Todo.py index 61780c354..f69e98d02 100644 --- a/plugins/Todo.py +++ b/plugins/Todo.py @@ -227,7 +227,12 @@ class Todo(callbacks.Privmsg): if cursor.rowcount == 0: invalid.append(taskid) #print 'Invalid tasks: %s' % repr(invalid) - if invalid: + if invalid and len(invalid) == 1: + irc.error('Task %s could not be removed either because ' + 'that id doesn\'t exist, the todo doesn\'t ' + 'belong to you, or it has been removed ' + 'already.' % invalid[0]) + elif invalid: irc.error('No tasks were removed because the following ' 'tasks could not be removed: %s' % utils.commaAndify(invalid))