# HG changeset patch # User Kim Alvefur # Date 1392229614 -3600 # Node ID 4a276653a2c9c0670ece365a61b224d94b90c34b # Parent a35c9e52b02e22f42610b48bcc81b16eaff0713e# Parent ac0879a8190a211f0beeb7768709cd7ab6d92c7c Merge 0.10 -> trunk diff -r a35c9e52b02e -r 4a276653a2c9 plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Thu Feb 06 10:55:09 2014 +0100 +++ b/plugins/mod_admin_telnet.lua Wed Feb 12 19:26:54 2014 +0100 @@ -22,8 +22,7 @@ local iterators = require "util.iterators"; local keys, values = iterators.keys, iterators.values; -local jid = require "util.jid"; -local jid_bare, jid_split = jid.bare, jid.split; +local jid_bare, jid_split = import("util.jid", "bare", "prepped_split"); local set, array = require "util.set", require "util.array"; local cert_verify_identity = require "util.x509".verify_identity; local envload = require "util.envload".envload; diff -r a35c9e52b02e -r 4a276653a2c9 plugins/mod_ping.lua --- a/plugins/mod_ping.lua Thu Feb 06 10:55:09 2014 +0100 +++ b/plugins/mod_ping.lua Wed Feb 12 19:26:54 2014 +0100 @@ -11,14 +11,11 @@ module:add_feature("urn:xmpp:ping"); local function ping_handler(event) - if event.stanza.attr.type == "get" then - event.origin.send(st.reply(event.stanza)); - return true; - end + return event.origin.send(st.reply(event.stanza)); end -module:hook("iq/bare/urn:xmpp:ping:ping", ping_handler); -module:hook("iq/host/urn:xmpp:ping:ping", ping_handler); +module:hook("iq-get/bare/urn:xmpp:ping:ping", ping_handler); +module:hook("iq-get/host/urn:xmpp:ping:ping", ping_handler); -- Ad-hoc command diff -r a35c9e52b02e -r 4a276653a2c9 plugins/mod_s2s/s2sout.lib.lua --- a/plugins/mod_s2s/s2sout.lib.lua Thu Feb 06 10:55:09 2014 +0100 +++ b/plugins/mod_s2s/s2sout.lib.lua Wed Feb 12 19:26:54 2014 +0100 @@ -348,6 +348,9 @@ has_ipv4 = true; end end + if not (has_ipv4 or has_ipv6) then + module:log("warn", "No local IPv4 or IPv6 addresses detected, outgoing connections may fail"); + end end); return s2sout; diff -r a35c9e52b02e -r 4a276653a2c9 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Thu Feb 06 10:55:09 2014 +0100 +++ b/plugins/mod_saslauth.lua Wed Feb 12 19:26:54 2014 +0100 @@ -245,7 +245,7 @@ if origin.encrypted then -- check wether LuaSec has the nifty binding to the function needed for tls-unique -- FIXME: would be nice to have this check only once and not for every socket - if origin.conn:socket().getpeerfinished then + if origin.conn:socket().getpeerfinished and origin.sasl_handler.add_cb_handler then origin.sasl_handler:add_cb_handler("tls-unique", function(self) return self.userdata:getpeerfinished(); end); diff -r a35c9e52b02e -r 4a276653a2c9 plugins/mod_storage_sql2.lua --- a/plugins/mod_storage_sql2.lua Thu Feb 06 10:55:09 2014 +0100 +++ b/plugins/mod_storage_sql2.lua Wed Feb 12 19:26:54 2014 +0100 @@ -325,6 +325,10 @@ local sql_query = "DELETE FROM `prosodyarchive` WHERE %s;"; local args = { host, user or "", store, }; local where = { "`host` = ?", "`user` = ?", "`store` = ?", }; + if user == true then + table.remove(args, 2); + table.remove(where, 2); + end archive_where(query, args, where); archive_where_id_range(query, args, where); sql_query = sql_query:format(t_concat(where, " AND "));