Browse Source

only show PRIVMSGed if we had something to PRIVMSG

master
Brian S. Stephan 1 year ago
parent
commit
ab1d3456ad
  1. 3
      history/ircplugin.py

3
history/ircplugin.py

@ -112,7 +112,8 @@ class History(Plugin):
history = self._missed_slice(where, who)
self._delete_channel_leave_point(where, who)
self._send_history(who, history)
self.bot.reply(event, f"{len(history)} line(s) (PRIVMSGed)")
privmsged_str = " (PRIVMSGed)" if history else ""
self.bot.reply(event, f"{len(history)} line(s){privmsged_str}")
return 'NO MORE'
def _send_history(self, who, history):

Loading…
Cancel
Save