diff options
author | Kim Alvefur <zash@zash.se> | 2018-08-05 18:28:31 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-08-05 18:28:31 +0200 |
commit | 8e21cbaf690a095015eedbca422bda4c1d6a7efa (patch) | |
tree | b52e23f0140817a86cb01aa75f05a9cf858f6609 /plugins/mod_pubsub | |
parent | 54ad49947952b9973d5a38a6852bf8344db4b852 (diff) | |
download | prosody-8e21cbaf690a095015eedbca422bda4c1d6a7efa.tar.gz prosody-8e21cbaf690a095015eedbca422bda4c1d6a7efa.zip |
mod_pubsub: Add a public method for retrieving the service object
There is already a set_service()
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 113ee2b3..21c43bce 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -150,6 +150,10 @@ local function get_affiliation(jid) end end +function get_service() + return service; +end + function set_service(new_service) service = new_service; module.environment.service = service; |