mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Later: Don't make Misc raise AssertionErrors.
This commit is contained in:
parent
1acb68a8b4
commit
5952b486f5
@ -241,12 +241,14 @@ class Later(callbacks.Plugin):
|
|||||||
for removal in removals:
|
for removal in removals:
|
||||||
self.wildcards.remove(removal)
|
self.wildcards.remove(removal)
|
||||||
if notes:
|
if notes:
|
||||||
|
old_repliedto = msg.repliedTo
|
||||||
irc = callbacks.SimpleProxy(irc, msg)
|
irc = callbacks.SimpleProxy(irc, msg)
|
||||||
private = self.registryValue('private')
|
private = self.registryValue('private')
|
||||||
for (when, whence, note) in notes:
|
for (when, whence, note) in notes:
|
||||||
s = self._formatNote(when, whence, note)
|
s = self._formatNote(when, whence, note)
|
||||||
irc.reply(s, private=private, prefixNick=not private)
|
irc.reply(s, private=private, prefixNick=not private)
|
||||||
self._flushNotes()
|
self._flushNotes()
|
||||||
|
msg.repliedTo = old_repliedto
|
||||||
|
|
||||||
def _formatNote(self, when, whence, note):
|
def _formatNote(self, when, whence, note):
|
||||||
return _('Sent %s: <%s> %s') % (self._timestamp(when), whence, note)
|
return _('Sent %s: <%s> %s') % (self._timestamp(when), whence, note)
|
||||||
|
Loading…
Reference in New Issue
Block a user