# HG changeset patch # User Kim Alvefur # Date 1442409510 -7200 # Node ID 750a97b45f885359bb755d3cb8f7c874cfbedbdf # Parent aeb088bb1a20cc8a4fdd7d44f0f8e9f1a415fd30 mod_offline: Decrease priority of event handlers so 3rd party hooks fire first by default diff -r aeb088bb1a20 -r 750a97b45f88 plugins/mod_offline.lua --- a/plugins/mod_offline.lua Wed Sep 16 15:16:51 2015 +0200 +++ b/plugins/mod_offline.lua Wed Sep 16 15:18:30 2015 +0200 @@ -30,7 +30,7 @@ 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 @@ end datamanager.list_store(node, host, "offline", nil); return true; -end); +end, -1);