Add LOCALECHO client option for clients not supporting local echoing. Resolve #2258.
This commit is contained in:
parent
49886dbff3
commit
a7b99a605b
5 changed files with 12 additions and 2 deletions
|
|
@ -441,6 +441,10 @@ class PortalSessionHandler(SessionHandler):
|
|||
session.cmd_last = now
|
||||
self.portal.amp_protocol.send_MsgPortal2Server(session, **kwargs)
|
||||
|
||||
# eventual local echo (text input only)
|
||||
if 'text' in kwargs and session.protocol_flags.get('LOCALECHO', False):
|
||||
self.data_out(session, text=kwargs['text'])
|
||||
|
||||
def data_out(self, session, **kwargs):
|
||||
"""
|
||||
Called by server for having the portal relay messages and data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue