1
0
Fork 0

Implement socket server subparse

This commit is contained in:
nemunaire 2016-07-08 22:38:25 +02:00
parent 764e6f070b
commit 97a1385903
1 changed files with 8 additions and 0 deletions

View File

@ -70,6 +70,14 @@ class _Socket(AbstractServer):
yield message.Command(cmd=args[0], args=args[1:], server=self.fileno(), to=["you"], frm="you")
def subparse(self, orig, cnt):
for m in self.parse(cnt):
m.to = orig.to
m.frm = orig.frm
m.date = orig.date
yield m
class _SocketServer(_Socket):
def __init__(self, host, port, bind=None, **kwargs):