mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Small stylistic update (now it's a little more readable).
This commit is contained in:
parent
6ebc226e00
commit
0098784ffd
@ -171,9 +171,10 @@ def urlSnarfer(f):
|
|||||||
while q and q[0][2] < cutoff:
|
while q and q[0][2] < cutoff:
|
||||||
q.dequeue()
|
q.dequeue()
|
||||||
url = match.group(0)
|
url = match.group(0)
|
||||||
if any(lambda t: t[0] == url and t[1] == msg.args[0], q) and \
|
for (qUrl, target, when) in q:
|
||||||
not world.testing:
|
if url == qUrl and target == msg.args[0] and not world.testing:
|
||||||
self.log.warning('Refusing to snarf %s from %r.', url, msg.prefix)
|
self.log.warning('Not snarfing %s from %r.', url, msg.prefix)
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
q.enqueue((url, msg.args[0], now))
|
q.enqueue((url, msg.args[0], now))
|
||||||
if self.threaded:
|
if self.threaded:
|
||||||
|
Loading…
Reference in New Issue
Block a user