From c3dcc4f416e922fbec3a9c780e1297df1b693247 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 13 Jan 2014 18:27:52 +0100 Subject: [PATCH] Do the previous commit in a more clean way --- plugins/Later/plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/Later/plugin.py b/plugins/Later/plugin.py index a7167207f..01c3f7667 100644 --- a/plugins/Later/plugin.py +++ b/plugins/Later/plugin.py @@ -245,10 +245,7 @@ class Later(callbacks.Plugin): private = self.registryValue('private') for (when, whence, note) in notes: s = self._formatNote(when, whence, note) - if private: - irc.reply(s, private=True) - else: - irc.reply(s, private=False, prefixNick=True) + irc.reply(s, private=private, prefixNick=not private) self._flushNotes() def _formatNote(self, when, whence, note):