diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-06 19:26:53 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-06 19:26:53 +0100 |
commit | 125dc63f565a46aedcb1750c45dcc97c71c2c72b (patch) | |
tree | 15f1682fbc9c2ea904651bcc59e99d2397b0d4a8 /util | |
parent | 83049e63c621c66da5129449f3a610df2e74ce38 (diff) | |
parent | ec83b2aa91ab9142ad6e7f4d26b0f6d20853e747 (diff) | |
download | prosody-125dc63f565a46aedcb1750c45dcc97c71c2c72b.tar.gz prosody-125dc63f565a46aedcb1750c45dcc97c71c2c72b.zip |
Merge 0.10->trunk
Diffstat (limited to 'util')
-rw-r--r-- | util/events.lua | 4 | ||||
-rw-r--r-- | util/xml.lua | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/util/events.lua b/util/events.lua index 81fbc13f..d19da98b 100644 --- a/util/events.lua +++ b/util/events.lua @@ -53,6 +53,9 @@ function new() end end end; + local function get_handlers(event) + return handlers[event]; + end; local function add_handlers(handlers) for event, handler in pairs(handlers) do add_handler(event, handler); @@ -135,6 +138,7 @@ function new() remove_handler = remove_handler; add_handlers = add_handlers; remove_handlers = remove_handlers; + get_handlers = get_handlers; wrappers = { add_handler = add_wrapper; remove_handler = remove_wrapper; diff --git a/util/xml.lua b/util/xml.lua index 6dbed65d..3c1d3e51 100644 --- a/util/xml.lua +++ b/util/xml.lua @@ -11,6 +11,7 @@ local parse_xml = (function() local ns_separator = "\1"; local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$"; return function(xml) + --luacheck: ignore 212/self local handler = {}; local stanza = st.stanza("root"); function handler:StartElement(tagname, attr) |