diff --git a/history/ircplugin.py b/history/ircplugin.py index 54b20af..c2dcfce 100644 --- a/history/ircplugin.py +++ b/history/ircplugin.py @@ -52,7 +52,7 @@ class History(Plugin): logger.debug("tracking message for %s: (%s,%s)", where, who, what) history = self.channel_history.setdefault(where, []) - history.append((when.isoformat(), who, what)) + history.append((where, when.isoformat(), who, what)) logger.debug("history for %s: %s", where, history) # for when we maybe don't see a join, if they talked in the channel, add them to it @@ -109,7 +109,7 @@ class History(Plugin): def _send_history(self, who, history): """Reply to who with missed history.""" for line in history: - self.bot.privmsg(who, f"[{line[0]}] <{line[1]}> {line[2]}") + self.bot.privmsg(who, f"{line[0]}: [{line[1]}] <{line[2]}> {line[3]}") def _add_channel_leave_point(self, where, who): """Note that the given who left the channel at the current history point."""