# HG changeset patch # User Waqas Hussain # Date 1285071865 -18000 # Node ID 28887137bb1b9035360d7d803db3ab7a7a44d4ed # Parent 90c18e0355af89c2a3c42155cac08e3d8e634259 util.stanza: Make the current element instead of when body text is passed to st.message(). diff -r 90c18e0355af -r 28887137bb1b util/stanza.lua --- 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)