wot
This commit is contained in:
parent
ef63c2321a
commit
5c6367a0f7
1 changed files with 3 additions and 3 deletions
|
@ -110,8 +110,8 @@ class Handler(object):
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.input_queue.put(StopIteration)
|
self.input_queue.put(StopIteration)
|
||||||
|
|
||||||
def put(self, value, args):
|
def put(self, value):
|
||||||
self.input_queue.put((value, args))
|
self.input_queue.put(value)
|
||||||
|
|
||||||
|
|
||||||
def dispatch(bot, input, kind, func, args, autohelp=False):
|
def dispatch(bot, input, kind, func, args, autohelp=False):
|
||||||
|
@ -125,7 +125,7 @@ def dispatch(bot, input, kind, func, args, autohelp=False):
|
||||||
return
|
return
|
||||||
|
|
||||||
if func._thread:
|
if func._thread:
|
||||||
bot.threads[func].put(input, args)
|
bot.threads[func].put(input)
|
||||||
else:
|
else:
|
||||||
_thread.start_new_thread(run, (bot, func, input))
|
_thread.start_new_thread(run, (bot, func, input))
|
||||||
|
|
||||||
|
|
Reference in a new issue