mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +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:
|
||||
q.dequeue()
|
||||
url = match.group(0)
|
||||
if any(lambda t: t[0] == url and t[1] == msg.args[0], q) and \
|
||||
not world.testing:
|
||||
self.log.warning('Refusing to snarf %s from %r.', url, msg.prefix)
|
||||
for (qUrl, target, when) in q:
|
||||
if url == qUrl and target == msg.args[0] and not world.testing:
|
||||
self.log.warning('Not snarfing %s from %r.', url, msg.prefix)
|
||||
return
|
||||
else:
|
||||
q.enqueue((url, msg.args[0], now))
|
||||
if self.threaded:
|
||||
|
Loading…
Reference in New Issue
Block a user