From 2935c16d274c0ef3e835911949497f46cb1ddd56 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 28 Aug 2003 17:55:01 +0000 Subject: [PATCH] Added example string. --- plugins/RSS.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/RSS.py b/plugins/RSS.py index e2c11aa8a..5a2104724 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -85,6 +85,14 @@ def configure(onStart, afterConnect, advanced): onStart.append('alias %s "rssinfo %s"' % (infocmd, url)) onStart.append('freeze %s' % infocmd) +example = utils.wrapLines(""" + @list RSS + rssinfo, rsstitles + @rssinfo http://arstechnica.com/etc/rdf/ars.rdf + Title: Ars Technica; URL: ; Description: The PC enthusiast's resource; Last updated 1 hour, 2 minutes, and 46 seconds ago. + @rsstitles http://arstechnica.com/etc/rdf/ars.rdf + Macintosh Browser Smackdown :: CAIB releases Columbia accident report :: The power of subpoena: hi, you like porn? :: Et Cetera: forget the bullets, it's tooth time :: Ars Emporium Update (updated / extended) :: Google gets even cooler :: Trade secrets trump free speech protection :: OneNote student pricing gives insight into Microsoft's Tablet strategy :: Et Cetera: Diamonds on my nines and golden bullets +""") class RSS(callbacks.Privmsg): threaded = True @@ -136,7 +144,8 @@ class RSS(callbacks.Privmsg): # check the 'modified' key, if it's there, convert it here first if 'modified' in feed: seconds = time.mktime(feed['modified']) - when = utils.timeElapsed(time.time() - seconds) + ' ago' + now = time.mktime(time.gmtime()) + when = utils.timeElapsed(now - seconds) + ' ago' else: when = "time unavailable" # The rest of the entries are all available in the channel key