give feedback on lines missed regardless of pub/privmsg

This commit is contained in:
Brian S. Stephan 2021-05-05 08:36:32 -05:00
parent 9368c8b823
commit b21421a395
1 changed files with 2 additions and 0 deletions

View File

@ -99,11 +99,13 @@ class History(Plugin):
logger.debug("total history so far: %s", total_history)
logger.debug("final missed history: %s", total_history)
self._send_history(who, total_history)
self.bot.reply(event, f"{len(total_history)} lines")
return 'NO MORE'
else:
where = event.target
history = self._missed_slice(where, who)
self._send_history(who, history)
self.bot.reply(event, f"{len(history)} lines (PRIVMSGed)")
return 'NO MORE'
def _send_history(self, who, history):