Comparison

plugins/muc/mod_muc.lua @ 12977:74b9e05af71e

plugins: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 24 Mar 2023 13:15:28 +0100
parent 12854:73db76cc6472
child 13170:082c7d856e61
comparison
equal deleted inserted replaced
12976:a187600ec7d6 12977:74b9e05af71e
93 93
94 local occupant_id = module:require "muc/occupant_id"; 94 local occupant_id = module:require "muc/occupant_id";
95 room_mt.get_salt = occupant_id.get_room_salt; 95 room_mt.get_salt = occupant_id.get_room_salt;
96 room_mt.get_occupant_id = occupant_id.get_occupant_id; 96 room_mt.get_occupant_id = occupant_id.get_occupant_id;
97 97
98 local jid_split = require "util.jid".split; 98 local jid_split = require "prosody.util.jid".split;
99 local jid_prep = require "util.jid".prep; 99 local jid_prep = require "prosody.util.jid".prep;
100 local jid_bare = require "util.jid".bare; 100 local jid_bare = require "prosody.util.jid".bare;
101 local st = require "util.stanza"; 101 local st = require "prosody.util.stanza";
102 local cache = require "util.cache"; 102 local cache = require "prosody.util.cache";
103 103
104 module:require "muc/config_form_sections"; 104 module:require "muc/config_form_sections";
105 105
106 module:depends("disco"); 106 module:depends("disco");
107 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms")); 107 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms"));
504 504
505 do -- Ad-hoc commands 505 do -- Ad-hoc commands
506 module:depends "adhoc"; 506 module:depends "adhoc";
507 local t_concat = table.concat; 507 local t_concat = table.concat;
508 local adhoc_new = module:require "adhoc".new; 508 local adhoc_new = module:require "adhoc".new;
509 local adhoc_initial = require "util.adhoc".new_initial_data_form; 509 local adhoc_initial = require "prosody.util.adhoc".new_initial_data_form;
510 local adhoc_simple = require "util.adhoc".new_simple_form; 510 local adhoc_simple = require "prosody.util.adhoc".new_simple_form;
511 local array = require "util.array"; 511 local array = require "prosody.util.array";
512 local dataforms_new = require "util.dataforms".new; 512 local dataforms_new = require "prosody.util.dataforms".new;
513 513
514 local destroy_rooms_layout = dataforms_new { 514 local destroy_rooms_layout = dataforms_new {
515 title = "Destroy rooms"; 515 title = "Destroy rooms";
516 instructions = "Select the rooms to destroy"; 516 instructions = "Select the rooms to destroy";
517 517