Add the ability to talk with other nemubot over DCC
This commit is contained in:
parent
30da270557
commit
a2d9757d06
8 changed files with 350 additions and 200 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue