Changeset

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
parents 5940:1927d4d27a26
children
files mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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