Do the previous commit in a more clean way

This commit is contained in:
nyuszika7h 2014-01-13 18:27:52 +01:00
parent a55f40dc68
commit c3dcc4f416

View File

@ -245,10 +245,7 @@ class Later(callbacks.Plugin):
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)
if private: irc.reply(s, private=private, prefixNick=not private)
irc.reply(s, private=True)
else:
irc.reply(s, private=False, prefixNick=True)
self._flushNotes() self._flushNotes()
def _formatNote(self, when, whence, note): def _formatNote(self, when, whence, note):