Add the ability to talk with other nemubot over DCC

This commit is contained in:
Némunaire 2012-08-31 05:21:19 +02:00
parent 30da270557
commit a2d9757d06
8 changed files with 350 additions and 200 deletions

View file

@ -38,7 +38,7 @@ class Consumer(threading.Thread):
# Create, parse and treat the message
try:
msg = Message(srv, raw, time, prvt)
res = msg.treat(self.context.hooks)
res = msg.treat()
except:
print ("\033[1;31mERROR:\033[0m occurred during the "
"processing of the message: %s" % raw)
@ -56,6 +56,9 @@ class Consumer(threading.Thread):
elif isinstance(res, Response):
srv.send_response(res, data)
# Inform that the message has been treated
srv.msg_treated(data)
except queue.Empty:
pass
finally: