--- a/plugins/mod_presence.lua Sun May 22 02:16:57 2016 +0100
+++ b/plugins/mod_presence.lua Sun May 22 14:39:20 2016 +0200
@@ -178,6 +178,7 @@
end
core_post_stanza(origin, stanza);
send_presence_of_available_resources(node, host, to_bare, origin);
+ core_post_stanza(origin, st.presence({ type = "probe", from = from_bare, to = to_bare }));
elseif stanza.attr.type == "unsubscribed" then
-- 1. send unavailable
-- 2. route stanza
--- a/util/datamanager.lua Sun May 22 02:16:57 2016 +0100
+++ b/util/datamanager.lua Sun May 22 14:39:20 2016 +0200
@@ -17,7 +17,9 @@
local os_remove = os.remove;
local os_rename = os.rename;
local tonumber = tonumber;
+local tostring = tostring;
local next = next;
+local type = type;
local t_insert = table.insert;
local t_concat = table.concat;
local envloadfile = require"util.envload".envloadfile;
--- a/util/sql.lua Sun May 22 02:16:57 2016 +0100
+++ b/util/sql.lua Sun May 22 14:39:20 2016 +0200
@@ -2,6 +2,7 @@
local setmetatable, getmetatable = setmetatable, getmetatable;
local ipairs, unpack, select = ipairs, table.unpack or unpack, select; --luacheck: ignore 113
local tonumber, tostring = tonumber, tostring;
+local type = type;
local assert, pcall, xpcall, debug_traceback = assert, pcall, xpcall, debug.traceback;
local t_concat = table.concat;
local s_char = string.char;