Fix for debincoming bug. It look like we're all getting out nots wrong these days.

This commit is contained in:
Jeremy Fincher 2004-09-16 14:30:44 +00:00
parent 1ba0fccd34
commit ad46bbef0e

View File

@ -132,7 +132,7 @@ def checkChannelCapability(f, capability):
def thread(f): def thread(f):
"""Makes sure a command spawns a thread when called.""" """Makes sure a command spawns a thread when called."""
def newf(self, irc, msg, args, *L, **kwargs): def newf(self, irc, msg, args, *L, **kwargs):
if threading.currentThread() is not world.mainThread: if threading.currentThread() is world.mainThread:
t = callbacks.CommandThread(target=irc._callCommand, t = callbacks.CommandThread(target=irc._callCommand,
args=(f.func_name, self), args=(f.func_name, self),
kwargs=kwargs) kwargs=kwargs)