Diff

plugins/mod_offline.lua @ 6834:750a97b45f88

mod_offline: Decrease priority of event handlers so 3rd party hooks fire first by default
author Kim Alvefur <zash@zash.se>
date Wed, 16 Sep 2015 15:18:30 +0200
parent 5776:bd0ff8ae98a8
child 8024:8eec715c13a6
line wrap: on
line diff
--- 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);