Diff

plugins/mod_message.lua @ 7718:c58075c4d375

mod_message, mod_carbons: Adjust event hook priorities to negative (core modules should do this to make overriding from other modules easier)
author Kim Alvefur <zash@zash.se>
date Thu, 17 Nov 2016 22:38:46 +0100
parent 5776:bd0ff8ae98a8
child 7956:beaeafedc2d7
line wrap: on
line diff
--- 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");