Later: Don't make Misc raise AssertionErrors.

This commit is contained in:
Valentin Lorentz 2015-05-19 00:50:26 +02:00
parent 1acb68a8b4
commit 5952b486f5
1 changed files with 2 additions and 0 deletions

View File

@ -241,12 +241,14 @@ class Later(callbacks.Plugin):
for removal in removals:
self.wildcards.remove(removal)
if notes:
old_repliedto = msg.repliedTo
irc = callbacks.SimpleProxy(irc, msg)
private = self.registryValue('private')
for (when, whence, note) in notes:
s = self._formatNote(when, whence, note)
irc.reply(s, private=private, prefixNick=not private)
self._flushNotes()
msg.repliedTo = old_repliedto
def _formatNote(self, when, whence, note):
return _('Sent %s: <%s> %s') % (self._timestamp(when), whence, note)