Diff

mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua @ 5941:5c4e102e2563 default tip

mod_pubsub_serverinfo: fix bool logic when reading config
author Guus der Kinderen <guus.der.kinderen@gmail.com>
date Mon, 03 Jun 2024 12:52:26 +0200
parent 5910:2c85397d7241
line wrap: on
line diff
--- a/mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua	Thu May 30 17:55:48 2024 +0100
+++ b/mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua	Mon Jun 03 12:52:26 2024 +0200
@@ -15,7 +15,8 @@
 
 if not service and prosody.hosts["pubsub."..module.host] then
 	service = "pubsub."..module.host;
-else
+end
+if not service
 	module:log_status("warn", "No pubsub service specified - module not activated");
 	return;
 end