also report on where history was said
kind of an obvious thing to do which I naturally missed
This commit is contained in:
parent
def5964658
commit
9368c8b823
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user