mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Fix for debincoming bug. It look like we're all getting out nots wrong these days.
This commit is contained in:
parent
1ba0fccd34
commit
ad46bbef0e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user