Software /
code /
prosody
Changeset
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 |
parents | 9117:a19fdc6e4f09 |
children | 9119:5444d4a8ad90 |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Sun Aug 05 15:17:00 2018 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Sun Aug 05 18:28:31 2018 +0200 @@ -150,6 +150,10 @@ end end +function get_service() + return service; +end + function set_service(new_service) service = new_service; module.environment.service = service;