mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +01:00
Less fragile thread check; the other didn't interact perfectly well with privmsgs.thread.
This commit is contained in:
parent
7e1184f47d
commit
30ce7c572e
@ -209,7 +209,7 @@ def urlSnarfer(f):
|
|||||||
self.log.info('Refusing to snarf %s, already snarfed.', url)
|
self.log.info('Refusing to snarf %s, already snarfed.', url)
|
||||||
return
|
return
|
||||||
irc = SnarfIrc(irc, channel, url)
|
irc = SnarfIrc(irc, channel, url)
|
||||||
if self.threaded:
|
if threading.currentThread() is not world.mainThread:
|
||||||
f(self, irc, msg, match, *L, **kwargs)
|
f(self, irc, msg, match, *L, **kwargs)
|
||||||
else:
|
else:
|
||||||
L = list(L)
|
L = list(L)
|
||||||
|
Loading…
Reference in New Issue
Block a user