Diff

util/stanza.lua @ 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
parent 3478:4621c92d2368
child 3638:6f58a3063c14
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)