From ab1d3456ad6cc6ed23565d2db345ab8a925f75d6 Mon Sep 17 00:00:00 2001 From: Brian Stephan Date: Thu, 6 May 2021 09:36:00 -0500 Subject: [PATCH] only show PRIVMSGed if we had something to PRIVMSG --- history/ircplugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/history/ircplugin.py b/history/ircplugin.py index 3fbb6bd..a6b998e 100644 --- a/history/ircplugin.py +++ b/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):