mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +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:
|
else:
|
||||||
(seen, m) = cursor.fetchone()
|
(seen, m) = cursor.fetchone()
|
||||||
seen = int(seen)
|
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)
|
(name, utils.timeElapsed(time.time() - seen), m)
|
||||||
irc.reply(msg, s)
|
irc.reply(msg, s)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user