Less fragile thread check; the other didn't interact perfectly well with privmsgs.thread.

This commit is contained in:
Jeremy Fincher 2004-09-09 03:12:11 +00:00
parent 7e1184f47d
commit 30ce7c572e

View File

@ -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)