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 | abeade92134c64bc956bbbc382c2f64ba5d8b524 (patch) | |
tree | b52e23f0140817a86cb01aa75f05a9cf858f6609 /plugins | |
parent | 2b8327099ad7aa5db62cccb1e4381d394b5519e3 (diff) | |
download | prosody-abeade92134c64bc956bbbc382c2f64ba5d8b524.tar.gz prosody-abeade92134c64bc956bbbc382c2f64ba5d8b524.zip |
mod_pubsub: Add a public method for retrieving the service object
There is already a set_service()
Diffstat (limited to 'plugins')
-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; |