mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fixed bug in deepthought.
This commit is contained in:
parent
51ab17ad98
commit
1891a46894
@ -66,7 +66,7 @@ class Http(callbacks.Privmsg):
|
|||||||
thought = ' ' * 512
|
thought = ' ' * 512
|
||||||
now = time.time()
|
now = time.time()
|
||||||
while self.deepthoughtq and now - self.deepthoughtq[0][0] > 86400:
|
while self.deepthoughtq and now - self.deepthoughtq[0][0] > 86400:
|
||||||
s = self.deepthoughtq.dequeue()
|
s = self.deepthoughtq.dequeue()[1]
|
||||||
self.deepthoughts.remove(s)
|
self.deepthoughts.remove(s)
|
||||||
while len(thought) > 430 or thought in self.deepthoughts:
|
while len(thought) > 430 or thought in self.deepthoughts:
|
||||||
fd = urllib2.urlopen(url)
|
fd = urllib2.urlopen(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user