# HG changeset patch # User Kim Alvefur # Date 1533486511 -7200 # Node ID 70f34c663fb37f72a3a64917ff8b1336ce712e84 # Parent a19fdc6e4f098013054a5e7f616218c7545e5bc1 mod_pubsub: Add a public method for retrieving the service object There is already a set_service() diff -r a19fdc6e4f09 -r 70f34c663fb3 plugins/mod_pubsub/mod_pubsub.lua --- a/plugins/mod_pubsub/mod_pubsub.lua Sun Aug 05 15:17:00 2018 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Sun Aug 05 18:28:31 2018 +0200 @@ -150,6 +150,10 @@ end end +function get_service() + return service; +end + function set_service(new_service) service = new_service; module.environment.service = service;