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

View File

@ -132,7 +132,7 @@ def checkChannelCapability(f, capability):
def thread(f):
"""Makes sure a command spawns a thread when called."""
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,
args=(f.func_name, self),
kwargs=kwargs)