mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Made seen command handle actions better.
This commit is contained in:
parent
15fe20ed8f
commit
92b2d195b3
@ -291,7 +291,9 @@ class ChannelDB(callbacks.PrivmsgCommandAndRegexp, ChannelDBHandler):
|
||||
else:
|
||||
(seen, m) = cursor.fetchone()
|
||||
seen = int(seen)
|
||||
s = '%s was last seen here %s ago saying %r' % \
|
||||
if m.startswith('\x01ACTION') and m.endswith('\x01'):
|
||||
m = '* %s%s' % (name, m[7:-1])
|
||||
s = '%s was last seen here %s ago saying %s' % \
|
||||
(name, utils.timeElapsed(time.time() - seen), m)
|
||||
irc.reply(msg, s)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user