From 7774f56dfc98b7192e9f9c0b32b070a2949f3113 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 16 Sep 2015 15:18:30 +0200 Subject: mod_offline: Decrease priority of event handlers so 3rd party hooks fire first by default --- plugins/mod_offline.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_offline.lua') diff --git a/plugins/mod_offline.lua b/plugins/mod_offline.lua index c168711b..08ab8490 100644 --- a/plugins/mod_offline.lua +++ b/plugins/mod_offline.lua @@ -30,7 +30,7 @@ module:hook("message/offline/handle", function(event) stanza.attr.stamp, stanza.attr.stamp_legacy = nil, nil; return result; -end); +end, -1); module:hook("message/offline/broadcast", function(event) local origin = event.origin; @@ -48,4 +48,4 @@ module:hook("message/offline/broadcast", function(event) end datamanager.list_store(node, host, "offline", nil); return true; -end); +end, -1); -- cgit v1.2.3