def mccp_compress(protocol, data):
    if hasattr(protocol, 'zlib'):
        return protocol.zlib.compress(data) + protocol.zlib.flush(FLUSH)
    return data
Handles zlib compression, if applicable.
dataset/ETHPy150Open evennia/evennia/evennia/server/portal/mccp.py/mccp_compress