aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
Commit message (Expand)AuthorAgeFilesLines
* util.stanza: Check that argument to error_reply is a stanzaKim Alvefur2019-11-251-0/+3
* util.stanza: Remove redundant check for attrsKim Alvefur2019-11-251-1/+1
* util.stanza: Check that argument to reply is a stanzaKim Alvefur2019-11-251-0/+3
* util.stanza: Use :text_tag internally everywhereKim Alvefur2019-08-021-3/+3
* util.stanza: Fix :top_tag() handling of namespaced attributesMatthew Wild2019-03-251-32/+30
* util.stanza: Require a type attribute for iq stanzasKim Alvefur2018-12-281-1/+7
* util.stanza: Deserialize stanza without mutating input (fixes #711)Kim Alvefur2018-12-011-27/+17
* util.stanza: Validate input to clone() (with brief tests)Kim Alvefur2018-11-171-2/+9
* util.stanza: Set preserialize as freeze metamethodKim Alvefur2018-10-121-0/+2
* util.stanza: Don't automatically generate ids for iq stanzasMatthew Wild2018-09-131-9/+4
* util.stanza + tests: Bail out of loop if we are iterating too far, fixes #981Matthew Wild2018-08-191-0/+6
* Merge 0.10->trunkKim Alvefur2018-07-081-0/+10
|\
| * util.stanza: Add method for removing all children with a specific name, xmlnsKim Alvefur2018-07-081-0/+10
* | util.stanza: Remove redundant check from :text now done in :add_direct_childKim Alvefur2018-06-081-1/+0
* | util.stanza: Verify that other objects added as children are valid stringsKim Alvefur2018-06-081-1/+4
* | util.stanza: Verify that child tags added are really stanzas (closes #1165)Kim Alvefur2018-06-081-1/+1
* | util.stanza: Add :text_tag(), a shortcut for adding nodes with textKim Alvefur2018-03-211-0/+4
* | util.stanza: Allow :text(nil) and :text("") as harmless nopsMatthew Wild2018-03-211-3/+5
* | util.stanza: Switch from asserts to if's, improve performance, errors and testsMatthew Wild2018-03-181-18/+32
* | util.stanza: Add stricter validation for data passed to stanza builder APIMatthew Wild2018-03-161-0/+29
* | vairious: Add annotation when an empty environment is set [luacheck]Kim Alvefur2018-02-281-0/+1
* | util.stanza: Change __type to __name as this is used by Lua 5.3 in some error...Kim Alvefur2018-02-161-1/+1
* | util: Various minor changes to please [luacheck]Kim Alvefur2017-11-101-1/+7
* | Merge 0.10->trunkKim Alvefur2016-12-021-0/+6
|\|
| * util.stanza: Add an is_stanza() function to check if an object is a stanzaKim Alvefur2016-11-281-0/+6
* | Merge 0.10->trunkMatthew Wild2016-03-091-21/+20
|\|
| * util.stanza: Some code cleanup [luacheck]Matthew Wild2016-03-091-21/+20
* | util.stanza, util.xml, util.xmppstream: Add support for tracking defined name...Matthew Wild2015-12-081-5/+10
|/
* util.stanza: Export xml_escape (missed during removal of module() calls)Kim Alvefur2015-09-031-0/+1
* util.*: Remove use of module() function, make all module functions local and ...Kim Alvefur2015-02-211-36/+38
* Merge 0.9->0.10Kim Alvefur2014-10-261-13/+2
|\
| * Backout changeset 6e67c73f730c: not a major fix and it breaks interop with at...0.9.7Matthew Wild2014-10-241-13/+2
* | Merge 0.9->0.10Waqas Hussain2014-10-081-2/+13
|\|
| * util.stanza: Escape newlines and tabs (\r\n\t) when serializing stanzas. \r\n...Waqas Hussain2014-10-081-2/+13
* | Remove all trailing whitespaceFlorian Zeitz2013-08-091-8/+8
|/
* util.stanza: Use correct index when replacing the tag in .tags (thanks daurni...Matthew Wild2013-04-051-1/+1
* util.stanza: Add stanza:find(), a light weight XPath-like methodKim Alvefur2013-04-041-0/+26
* util.stanza: :maptags(): Fixes to make loop more robust on item removalMatthew Wild2013-04-031-2/+4
* util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44)Kim Alvefur2012-08-211-1/+1
* util.stanza: Make stanza:childtags() behave like :get_child()Kim Alvefur2012-07-051-2/+2
* util.stanza: Remove unused function importsMatthew Wild2012-04-281-6/+0
* util.stanza: Remove unused __add metamethodMatthew Wild2011-12-211-5/+0
* util.stanza: Remove childtags and rename matching_tags -> childtags (they are...Matthew Wild2011-02-221-18/+9
* util.stanza: Rewrite clone() to be more optimized.Waqas Hussain2011-02-201-15/+12
* util.stanza: Make some globals local, so they don't clutter the global checki...Waqas Hussain2011-02-031-0/+2
* util.stanza: Add get_child_text() method to get the text of the specified chi...Matthew Wild2011-01-311-0/+8
* util.stanza: Iterate on childtags instead of all childs.Kim Alvefur2010-12-171-1/+1
* util.stanza: Change get_error() to return nil rather than '' for no textMatthew Wild2010-12-111-1/+1
* util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be n...Waqas Hussain2010-11-261-13/+12
* util.stanza: Make the current element <message> instead of <body> when body t...Waqas Hussain2010-09-211-1/+1