Change the "no todo" message for jemfinch.

This commit is contained in:
James Vega 2005-05-01 22:26:25 +00:00
parent fcfda73f64
commit 3a061ad3c8

View File

@ -134,6 +134,7 @@ class Todo(callbacks.Plugin):
will return a list of task ids that that user has added to their todo will return a list of task ids that that user has added to their todo
list. list.
""" """
u = ircdb.users.getUser(msg.prefix)
# List the active tasks for the given user # List the active tasks for the given user
if not taskid: if not taskid:
try: try:
@ -147,7 +148,10 @@ class Todo(callbacks.Plugin):
irc.reply(format('%s for %s: %L', irc.reply(format('%s for %s: %L',
Todo, user.name, tasks)) Todo, user.name, tasks))
except dbi.NoRecordError: 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 return
# Reply with the user's task # Reply with the user's task
else: else: