mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +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):
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user