summaryrefslogtreecommitdiffstats
path: root/ircbot/rssbot.py
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-01-06 01:00:19 +0100
committertv <tv@nomic.retiolum>2014-01-06 01:00:19 +0100
commit54cb85b9ae82fe89d717fd5ce3de028b12c7c2fd (patch)
tree7931a79725681f7cdde4d4bb3cdd162f5a4f5258 /ircbot/rssbot.py
parent89317ee561297b3626fa86db4951187bf8bccea1 (diff)
parentf2adb4ea677d0651b89b63a9c59e44ff87bd63d0 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'ircbot/rssbot.py')
-rwxr-xr-xircbot/rssbot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ircbot/rssbot.py b/ircbot/rssbot.py
index c3e05d1e..67f407ac 100755
--- a/ircbot/rssbot.py
+++ b/ircbot/rssbot.py
@@ -20,7 +20,7 @@ class RssBot(irc.bot.SingleServerIRCBot):
self.oldnews = []
self.sendqueue = []
self.loop = True
- self.lastpull = datetime.now()
+ self.lastnew = datetime.now()
def start(self):
self.upd_loop = _thread.start_new_thread(self.updateloop, ())
@@ -49,7 +49,7 @@ class RssBot(irc.bot.SingleServerIRCBot):
#except AttributeError:
self.send(entry.title + " " + entry.link)
self.oldnews.append(entry.link)
- self.lastpull = datetime.now()
+ self.lastnew = datetime.now()
sleep(self.to)