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
1 changed files with 3 additions and 1 deletions

View File

@ -185,7 +185,9 @@ def urlSnarfer(f):
t = threading.Thread(target=f, args=[self,irc,msg,match]+L)
t.setDaemon(True)
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):