mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Change the "no todo" message for jemfinch.
This commit is contained in:
parent
fcfda73f64
commit
3a061ad3c8
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user