Software /
code /
prosody
Comparison
plugins/mod_pubsub/mod_pubsub.lua @ 9118:70f34c663fb3
mod_pubsub: Add a public method for retrieving the service object
There is already a set_service()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 05 Aug 2018 18:28:31 +0200 |
parent | 9108:86f31a2174b3 |
child | 9119:5444d4a8ad90 |
comparison
equal
deleted
inserted
replaced
9117:a19fdc6e4f09 | 9118:70f34c663fb3 |
---|---|
148 if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then | 148 if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then |
149 return admin_aff; | 149 return admin_aff; |
150 end | 150 end |
151 end | 151 end |
152 | 152 |
153 function get_service() | |
154 return service; | |
155 end | |
156 | |
153 function set_service(new_service) | 157 function set_service(new_service) |
154 service = new_service; | 158 service = new_service; |
155 module.environment.service = service; | 159 module.environment.service = service; |
156 add_disco_features_from_service(service); | 160 add_disco_features_from_service(service); |
157 end | 161 end |