From ce1435a55f9918cb0a440ed0d26febc503bd47fb Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 8 Apr 2003 09:11:33 +0000 Subject: [PATCH] Minor changes --- plugins/Notes.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/Notes.py b/plugins/Notes.py index 8e21da94f..bd960e6a8 100644 --- a/plugins/Notes.py +++ b/plugins/Notes.py @@ -49,6 +49,7 @@ import sqlite import conf import debug +import utils import ircdb import ircmsgs import privmsgs @@ -173,8 +174,8 @@ class Notes(callbacks.Privmsg): author = self.getUserName(from_id) public = int(public) added_at = int(added_at) - senttime = time.strftime(conf.timestampFormat) - newnote = "%s (Sent by %s on %s)" % (note, author, senttime) + elapsed = utils.timeElapsed(time.time() - added_at) + newnote = "%s (Sent by %s %s ago)" % (note, author, elapsed) if senderID == to_id: if public: irc.reply(msg, newnote) @@ -189,7 +190,8 @@ class Notes(callbacks.Privmsg): def notes(self, irc, msg, args): """ - Retrieves all unread notes for the requesting user.""" + Retrieves all unread notes for the requesting user. + """ try: sender = ircdb.users.getUserName(msg.prefix) except KeyError: