mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +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)
|
||||
return
|
||||
irc = SnarfIrc(irc, channel, url)
|
||||
if self.threaded:
|
||||
if threading.currentThread() is not world.mainThread:
|
||||
f(self, irc, msg, match, *L, **kwargs)
|
||||
else:
|
||||
L = list(L)
|
||||
|
Loading…
Reference in New Issue
Block a user