From 3a061ad3c813d73267f55cf9fd381f9f124a15e7 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 1 May 2005 22:26:25 +0000 Subject: [PATCH] Change the "no todo" message for jemfinch. --- plugins/Todo/plugin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/Todo/plugin.py b/plugins/Todo/plugin.py index b3a277992..5d326c3ae 100644 --- a/plugins/Todo/plugin.py +++ b/plugins/Todo/plugin.py @@ -134,6 +134,7 @@ class Todo(callbacks.Plugin): will return a list of task ids that that user has added to their todo list. """ + u = ircdb.users.getUser(msg.prefix) # List the active tasks for the given user if not taskid: try: @@ -147,7 +148,10 @@ class Todo(callbacks.Plugin): irc.reply(format('%s for %s: %L', Todo, user.name, tasks)) except dbi.NoRecordError: - irc.reply('That user has no todos.') + if u != user: + irc.reply('That user has no tasks in their todo list.') + else: + irc.reply('You have no tasks in your todo list.') return # Reply with the user's task else: