From 076aadf990ce6e3c48ec0e6f545fac2a3167d0d9 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 21 Sep 2010 17:24:25 +0500 Subject: util.stanza: Make the current element instead of when body text is passed to st.message(). --- util/stanza.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/stanza.lua') 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) -- cgit v1.2.3