From f8f977386e25cf7c5fb63978aaebb798e53f73b2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 13 Feb 2004 09:56:59 +0000 Subject: [PATCH] Store the q on the function itself in case we want to debug with it later. --- src/privmsgs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/privmsgs.py b/src/privmsgs.py index 72eaaabb2..51729af6f 100644 --- a/src/privmsgs.py +++ b/src/privmsgs.py @@ -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):