Merge pull request #539 from nyuszika7h/testing

Do the previous commit in a more clean way
This commit is contained in:
Valentin Lorentz 2014-01-13 09:30:31 -08:00
commit 8e023ed8c6

View File

@ -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):