Made seen command handle actions better.

This commit is contained in:
Jeremy Fincher 2003-09-02 06:19:58 +00:00
parent 15fe20ed8f
commit 92b2d195b3

View File

@ -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)