--- a/plugins/mod_message.lua Fri Nov 04 13:28:10 2016 +0100
+++ b/plugins/mod_message.lua Thu Nov 17 22:38:46 2016 +0100
@@ -73,13 +73,13 @@
else -- resource not online
return process_to_bare(jid_bare(stanza.attr.to), origin, stanza);
end
-end);
+end, -1);
module:hook("message/bare", function(data)
-- message to bare JID recieved
local origin, stanza = data.origin, data.stanza;
return process_to_bare(stanza.attr.to or (origin.username..'@'..origin.host), origin, stanza);
-end);
+end, -1);
module:add_feature("msgoffline");