chat_subscribe_prefix("") repeat while evt := owf_next_event() do if evt.type == OWF_EVT_SUBMIT_CHAT_MESSAGE then chat_set_sent_history_index(#chat_get_sent_history() + 1) end end until yield()