Software /
code /
prosody
Changeset
3502:28887137bb1b
util.stanza: Make the current element <message> instead of <body> when body text is passed to st.message().
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 21 Sep 2010 17:24:25 +0500 |
parents | 3501:90c18e0355af |
children | 3503:85e511e01d3c |
files | util/stanza.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/stanza.lua Sun Sep 19 17:51:00 2010 +0500 +++ b/util/stanza.lua Tue Sep 21 17:24:25 2010 +0500 @@ -343,7 +343,7 @@ if not body then return stanza("message", attr); else - return stanza("message", attr):tag("body"):text(body); + return stanza("message", attr):tag("body"):text(body):up(); end end function iq(attr)