diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-09-21 17:24:25 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-09-21 17:24:25 +0500 |
commit | 076aadf990ce6e3c48ec0e6f545fac2a3167d0d9 (patch) | |
tree | 14706dc9224c0862847dfa9e6c7739bd3e87d686 /util/stanza.lua | |
parent | 152638d87b618276a83516271aac3f3471fb897a (diff) | |
download | prosody-076aadf990ce6e3c48ec0e6f545fac2a3167d0d9.tar.gz prosody-076aadf990ce6e3c48ec0e6f545fac2a3167d0d9.zip |
util.stanza: Make the current element <message> instead of <body> when body text is passed to st.message().
Diffstat (limited to 'util/stanza.lua')
-rw-r--r-- | util/stanza.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/stanza.lua b/util/stanza.lua index 496a4881..28e26e0a 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -343,7 +343,7 @@ function message(attr, body) 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) |