elif telopt is TELOPT_TTYPE and text[position + 3] is IS:
user.ttype = (
text[position + 4:end_subnegotiation]).decode("ascii")
elif telopt is TELOPT_TTYPE and text[position + 3] is IS:
user.ttype = (
text[position + 4:end_subnegotiation]).decode("ascii")
log("Ignored unknown command %s from" % command, user)
text = text[:position] + text[position + 2:]
log("Ignored unknown command %s from" % command, user)
text = text[:position] + text[position + 2:]