From 5952b486f58dd7b1c13e37c39d7572cc4bde1d2a Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 19 May 2015 00:50:26 +0200 Subject: [PATCH] Later: Don't make Misc raise AssertionErrors. --- plugins/Later/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Later/plugin.py b/plugins/Later/plugin.py index 24e38fc99..71600d84b 100644 --- a/plugins/Later/plugin.py +++ b/plugins/Later/plugin.py @@ -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)