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
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue