Diff

plugins/mod_muc_mam.lua @ 9872:e1d68f32ce29

mod_muc_mam: Set error status if loaded on incorrect host type
author Matthew Wild <mwild1@gmail.com>
date Tue, 19 Mar 2019 09:08:56 +0000
parent 9845:774b2ce62318
child 9882:18f025b3987d
line wrap: on
line diff
--- a/plugins/mod_muc_mam.lua	Tue Mar 19 09:08:33 2019 +0000
+++ b/plugins/mod_muc_mam.lua	Tue Mar 19 09:08:56 2019 +0000
@@ -4,7 +4,7 @@
 -- This file is MIT/X11 licensed.
 
 if module:get_host_type() ~= "component" then
-	module:log("error", "mod_%s should be loaded only on a MUC component, not normal hosts", module.name);
+	module:log_status("error", "mod_%s should be loaded only on a MUC component, not normal hosts", module.name);
 	return;
 end