Mercurial > prosody-modules
diff mod_admin_message/mod_admin_message.lua @ 2887:65082d91950e
Many modules: Simplify st.message(…):tag("body"):text(…):up() into st.message(…, …)
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 17 Feb 2018 08:42:10 +0100 |
parents | 9ed6d44b9fed |
children |
line wrap: on
line diff
--- a/mod_admin_message/mod_admin_message.lua Tue Feb 20 17:30:17 2018 +0100 +++ b/mod_admin_message/mod_admin_message.lua Sat Feb 17 08:42:10 2018 +0100 @@ -89,8 +89,7 @@ -- Send the reply stanza local reply_stanza = st.message({ from = host, to = userjid, - type = "chat" }); - reply_stanza = reply_stanza:body(session.fulltext); + type = "chat" }, session.fulltext); module:send(reply_stanza); return true;