diff --git a/plugins/history.py b/plugins/history.py index 5f32fa069..6473deef5 100644 --- a/plugins/history.py +++ b/plugins/history.py @@ -109,11 +109,11 @@ def seen(text, nick, chan, db, event): if last_seen: reltime = timeformat.time_since(last_seen[1]) - if last_seen[0] != text.lower(): # for glob matching - text = last_seen[0] + if last_seen[0] != name.lower(): # for glob matching + name = last_seen[0] if last_seen[2][0:1] == "\x01": - return '{} was last seen {} ago: * {} {}'.format(text, reltime, text, last_seen[2][8:-1]) + return '{} was last seen in {} {} ago: * {} {}'.format(name, chan, reltime, name, last_seen[2][8:-1]) else: - return '{} was last seen {} ago saying: {}'.format(text, reltime, last_seen[2]) + return '{} was last seen in {} {} ago saying: {}'.format(name, chan, reltime, last_seen[2]) else: - return "I've never seen {} talking in this channel.".format(text) + return "I've never seen {} talking in {}.".format(name, chan)