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
commit a2d9757d06
8 changed files with 350 additions and 200 deletions

View file

@ -110,6 +110,10 @@ class Server(threading.Thread):
def send_pong(self, cnt):
self.s.send(("PONG %s\r\n" % cnt).encode ())
def msg_treated(self, origin):
"""Do nothing, here for implement abstract class"""
pass
def send_response(self, res, origin):
if res.channel is not None and res.channel != self.nick:
self.send_msg(res.channel, res.get_message())