mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Provide a proper response for Later.notes when no notes are waiting.
This commit is contained in:
parent
70d1b1d5d0
commit
de7d0fae74
@ -130,8 +130,12 @@ class Later(callbacks.Privmsg):
|
|||||||
irc.error('I have no notes for that nick.')
|
irc.error('I have no notes for that nick.')
|
||||||
else:
|
else:
|
||||||
nicks = self._notes.keys()
|
nicks = self._notes.keys()
|
||||||
|
if nicks:
|
||||||
utils.sortBy(ircutils.toLower, nicks)
|
utils.sortBy(ircutils.toLower, nicks)
|
||||||
irc.reply(format('I currently have notes waiting for %L.', nicks))
|
irc.reply(format('I currently have notes waiting for %L.',
|
||||||
|
nicks))
|
||||||
|
else:
|
||||||
|
irc.error('I have no notes waiting to be delivered.')
|
||||||
notes = wrap(notes, [additional('something')])
|
notes = wrap(notes, [additional('something')])
|
||||||
|
|
||||||
def doPrivmsg(self, irc, msg):
|
def doPrivmsg(self, irc, msg):
|
||||||
|
Loading…
Reference in New Issue
Block a user