aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
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
commitabeade92134c64bc956bbbc382c2f64ba5d8b524 (patch)
treeb52e23f0140817a86cb01aa75f05a9cf858f6609 /plugins/mod_pubsub/mod_pubsub.lua
parent2b8327099ad7aa5db62cccb1e4381d394b5519e3 (diff)
downloadprosody-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/mod_pubsub/mod_pubsub.lua')
-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;