Mercurial > prosody-modules
comparison mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua @ 5917:5c4e102e2563
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 | 2c85397d7241 |
| children | d4a8644a1cc5 |
comparison
equal
deleted
inserted
replaced
| 5916:1927d4d27a26 | 5917:5c4e102e2563 |
|---|---|
| 13 local delete_node_on_unload = module:get_option_boolean(module.name.."_delete_node_on_unload", false); | 13 local delete_node_on_unload = module:get_option_boolean(module.name.."_delete_node_on_unload", false); |
| 14 local persist_items = module:get_option_boolean(module.name.."_persist_items", true); | 14 local persist_items = module:get_option_boolean(module.name.."_persist_items", true); |
| 15 | 15 |
| 16 if not service and prosody.hosts["pubsub."..module.host] then | 16 if not service and prosody.hosts["pubsub."..module.host] then |
| 17 service = "pubsub."..module.host; | 17 service = "pubsub."..module.host; |
| 18 else | 18 end |
| 19 if not service | |
| 19 module:log_status("warn", "No pubsub service specified - module not activated"); | 20 module:log_status("warn", "No pubsub service specified - module not activated"); |
| 20 return; | 21 return; |
| 21 end | 22 end |
| 22 | 23 |
| 23 local xmlns_pubsub = "http://jabber.org/protocol/pubsub"; | 24 local xmlns_pubsub = "http://jabber.org/protocol/pubsub"; |
