aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-05 18:28:31 +0200
committerKim Alvefur <zash@zash.se>2018-08-05 18:28:31 +0200
commit8e21cbaf690a095015eedbca422bda4c1d6a7efa (patch)
treeb52e23f0140817a86cb01aa75f05a9cf858f6609 /plugins
parent54ad49947952b9973d5a38a6852bf8344db4b852 (diff)
downloadprosody-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')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua4
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;