This commit is contained in:
Luke Rogers 2014-03-25 14:53:18 +13:00
parent ef63c2321a
commit 5c6367a0f7
1 changed files with 3 additions and 3 deletions

View File

@ -110,8 +110,8 @@ class Handler(object):
def stop(self):
self.input_queue.put(StopIteration)
def put(self, value, args):
self.input_queue.put((value, args))
def put(self, value):
self.input_queue.put(value)
def dispatch(bot, input, kind, func, args, autohelp=False):
@ -125,7 +125,7 @@ def dispatch(bot, input, kind, func, args, autohelp=False):
return
if func._thread:
bot.threads[func].put(input, args)
bot.threads[func].put(input)
else:
_thread.start_new_thread(run, (bot, func, input))