Add a slight delay to telnet handshake to give mudlet a chance to catch up

This commit is contained in:
Griatch 2018-01-01 20:58:48 +01:00
parent 42f74dc553
commit a342353fd6
2 changed files with 12 additions and 4 deletions

View file

@ -310,7 +310,13 @@ class ServerSessionHandler(SessionHandler):
sess.uid = None
# show the first login command
self.data_in(sess, text=[[CMD_LOGINSTART], {}])
# this delay is necessary notably for Mudlet, which will fail on the connection screen
# unless the MXP protocol has been negotiated. Unfortunately this may be too short for some
# networks, the symptom is that < and > are not parsed by mudlet on first connection.
from evennia.utils.utils import delay
delay(0.3, self.data_in, sess, text=[[CMD_LOGINSTART], {}])
# self.data_in(sess, text=[[CMD_LOGINSTART], {}])
def portal_session_sync(self, portalsessiondata):
"""