From abeade92134c64bc956bbbc382c2f64ba5d8b524 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 5 Aug 2018 18:28:31 +0200 Subject: mod_pubsub: Add a public method for retrieving the service object There is already a set_service() --- plugins/mod_pubsub/mod_pubsub.lua | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3