This commit is contained in:
Luke Rogers 2014-03-25 14:53:18 +13:00
parent ef63c2321a
commit 5c6367a0f7

View file

@ -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))