# HG changeset patch # User Kim Alvefur # Date 1520619378 -3600 # Node ID ce1737520943f5880240acfb4e49eafd36090fb1 # Parent 44217f40ff4a2427b48267075cd62c0f4fca2709 MUC: Write down which functions are exposed and thus available to other modules diff -r 44217f40ff4a -r ce1737520943 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Thu Mar 08 17:35:56 2018 +0100 +++ b/plugins/muc/mod_muc.lua Fri Mar 09 19:16:18 2018 +0100 @@ -6,6 +6,16 @@ -- COPYING file in the source package for more information. -- +-- Exposed functions: +-- +-- create_room(jid) -> room +-- track_room(room) +-- delete_room(room) +-- forget_room(room) +-- get_room_from_jid(jid) -> room +-- each_room(local_only) -> () -> room +-- shutdown_component() + if module:get_host_type() ~= "component" then error("MUC should be loaded as a component, please see https://prosody.im/doc/components", 0); end