mirror of https://github.com/Mikaela/Limnoria.git
Store the q on the function itself in case we want to debug with it later.
This commit is contained in:
parent
60bf8eba95
commit
f8f977386e
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue