Created
May 12, 2011 20:33
-
-
Save tsudot/969383 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local st = require "util.stanza"; | |
local reply = st.stanza("message"); | |
reply:tag("body"):text("Enter the valid keys"):up() | |
:tag("x", {xmlns="jabber:x:oob"}):tag("url"):text("some_url"):up():up() | |
:tag("captcha", {xmlns="urn:xmpp:captcha"}):up(); | |
print (reply); | |
-- <message><body>Enter the valid keys</body><x xmlns='jabber:x:oob'> | |
-- <url>some_url</url></x> | |
-- <captcha xmlns='urn:xmpp:captcha'/></message> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment