# HG changeset patch # User Matthew Wild # Date 1407228908 -3600 # Node ID 6b3eb1611587c96a03654710e1d989df15279891 # Parent 93fb28851d9ef32bc17cbfebd54379e5a6d94bfc mod_muc: Import util.stanza into the config handler modules that need it. Fixes #432. diff -r 93fb28851d9e -r 6b3eb1611587 plugins/muc/lock.lib.lua --- a/plugins/muc/lock.lib.lua Tue Aug 05 09:16:29 2014 +0100 +++ b/plugins/muc/lock.lib.lua Tue Aug 05 09:55:08 2014 +0100 @@ -7,6 +7,8 @@ -- COPYING file in the source package for more information. -- +local st = require "util.stanza"; + local lock_rooms = module:get_option_boolean("muc_room_locking", false); local lock_room_timeout = module:get_option_number("muc_room_lock_timeout", 300); diff -r 93fb28851d9e -r 6b3eb1611587 plugins/muc/members_only.lib.lua --- a/plugins/muc/members_only.lib.lua Tue Aug 05 09:16:29 2014 +0100 +++ b/plugins/muc/members_only.lib.lua Tue Aug 05 09:55:08 2014 +0100 @@ -7,6 +7,8 @@ -- COPYING file in the source package for more information. -- +local st = require "util.stanza"; + local muc_util = module:require "muc/util"; local valid_roles, valid_affiliations = muc_util.valid_roles, muc_util.valid_affiliations; diff -r 93fb28851d9e -r 6b3eb1611587 plugins/muc/password.lib.lua --- a/plugins/muc/password.lib.lua Tue Aug 05 09:16:29 2014 +0100 +++ b/plugins/muc/password.lib.lua Tue Aug 05 09:55:08 2014 +0100 @@ -7,6 +7,8 @@ -- COPYING file in the source package for more information. -- +local st = require "util.stanza"; + local function get_password(room) return room._data.password; end