Store the q on the function itself in case we want to debug with it later.

This commit is contained in:
Jeremy Fincher 2004-02-13 09:56:59 +00:00
parent 60bf8eba95
commit f8f977386e

View File

@ -185,7 +185,9 @@ def urlSnarfer(f):
t = threading.Thread(target=f, args=[self,irc,msg,match]+L) t = threading.Thread(target=f, args=[self,irc,msg,match]+L)
t.setDaemon(True) t.setDaemon(True)
t.start() t.start()
return utils.changeFunctionName(newf, f.func_name, f.__doc__) newf = utils.changeFunctionName(newf, f.func_name, f.__doc__)
newf.q = q
return newf
class CapabilityCheckingPrivmsg(callbacks.Privmsg): class CapabilityCheckingPrivmsg(callbacks.Privmsg):