aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_message.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-17 23:20:41 +0100
committerKim Alvefur <zash@zash.se>2016-11-17 23:20:41 +0100
commitfd894fe73e9890435a1c0ec97b660c888ac38e3b (patch)
treeb62d53ea2041a4fa193e4b0c160fc308c8151b8a /plugins/mod_message.lua
parentbeb642888ec3e3c27d96f6e4cf969033b8495d8e (diff)
parentd494870913b1789d0313681ff74c0954a4bde3df (diff)
downloadprosody-fd894fe73e9890435a1c0ec97b660c888ac38e3b.tar.gz
prosody-fd894fe73e9890435a1c0ec97b660c888ac38e3b.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_message.lua')
-rw-r--r--plugins/mod_message.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_message.lua b/plugins/mod_message.lua
index fc337db0..47da5f46 100644
--- a/plugins/mod_message.lua
+++ b/plugins/mod_message.lua
@@ -73,13 +73,13 @@ module:hook("message/full", function(data)
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");