{% set MCHAT_DISPLAY_INDEX_WHOIS = MCHAT_PAGE == 'index' and MCHAT_WHOIS_REFRESH and MCHAT_WHOIS_INDEX %}
{{ S_FORM_TOKEN_DMZX_MCHAT }} {% if MCHAT_ALLOW_USE and MCHAT_PAGE != 'archive' %} {% EVENT dmzx_mchat_controls_before %}
{% if MCHAT_MAX_MESSAGE_LENGTH %} {% endif %}
{% EVENT dmzx_mchat_buttons_container_before %} {% if MCHAT_ALLOW_SMILES and loops.smiley|length or S_BBCODE_ALLOWED or S_MCHAT_ADD_CUSTOM_BUTTON %}
{% EVENT dmzx_mchat_buttons_before %} {% if MCHAT_ALLOW_SMILES and loops.smiley|length %} {% endif %} {% EVENT dmzx_mchat_buttons_mid %} {% if S_BBCODE_ALLOWED %} {% endif %} {% EVENT dmzx_mchat_buttons_after %}
{% endif %} {% EVENT dmzx_mchat_buttons_container_after %}
{% EVENT dmzx_mchat_controls_after %} {% if S_BBCODE_ALLOWED %}
{% INCLUDE 'posting_buttons.html' %}
{% endif %} {% if MCHAT_ALLOW_SMILES and loops.smiley|length %} {% endif %} {% EVENT dmzx_mchat_body_smiley_after %} {% endif %}
{% if MCHAT_DISPLAY_INDEX_WHOIS %} {% INCLUDE '@dmzx_mchat/mchat_whois.html' %} {% endif %} {% EVENT dmzx_mchat_panel_whois_after %} {% if MCHAT_ALLOW_USE and MCHAT_CHARACTER_COUNT and MCHAT_PAGE != 'archive' %} {% endif %}