evennia.server.portal.mxp

MXP - Mud eXtension Protocol.

Partial implementation of the MXP protocol. The MXP protocol allows more advanced formatting options for telnet clients that supports it (mudlet, zmud, mushclient are a few)

This only implements the SEND tag.

More information can be found on the following links: http://www.zuggsoft.com/zmud/mxp.htm http://www.mushclient.com/mushclient/mxp.htm http://www.gammon.com.au/mushclient/addingservermxp.htm

evennia.server.portal.mxp.mxp_parse(text)[源代码]

Replaces links to the correct format for MXP.

参数

text (str) – The text to parse.

返回

parsed (str) – The parsed text.

class evennia.server.portal.mxp.Mxp(protocol)[源代码]

基类:object

Implements the MXP protocol.

__init__(protocol)[源代码]

Initializes the protocol by checking if the client supports it.

参数

protocol (Protocol) – The active protocol instance.

no_mxp(option)[源代码]

Called when the Client reports to not support MXP.

参数

option (Option) – Not used.

do_mxp(option)[源代码]

Called when the Client reports to support MXP.

参数

option (Option) – Not used.