Fixed display of /me

This commit is contained in:
Luke Rogers 2013-07-08 22:15:00 +12:00
parent 48cbc834de
commit 5033332985

View file

@ -52,7 +52,10 @@ def seen(inp, nick='', chan='', db=None, input=None):
reltime = timesince.timesince(last_seen[1]) reltime = timesince.timesince(last_seen[1])
if last_seen[0] != inp.lower(): # for glob matching if last_seen[0] != inp.lower(): # for glob matching
inp = last_seen[0] inp = last_seen[0]
return '%s was last seen %s ago saying: %s' % \ if last_seen[2][0:1]=="\x01":
(inp, reltime, last_seen[2]) return '{} was last seen {} ago: * {} {}'.format(inp, reltime, inp,
last_seen[2][8:-1])
else:
return '{} was last seen {} ago saying: {}'.format(inp, reltime, last_seen[2])
else: else:
return "I've never seen %s talking in this channel." % inp return "I've never seen {} talking in this channel.".format(inp)