Comparison

plugins/muc/history.lib.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 11711:6fbbfa4a1178
child 13213:50324f66ca2a
comparison
equal deleted inserted replaced
12976:a187600ec7d6 12977:74b9e05af71e
6 -- This project is MIT/X11 licensed. Please see the 6 -- This project is MIT/X11 licensed. Please see the
7 -- COPYING file in the source package for more information. 7 -- COPYING file in the source package for more information.
8 -- 8 --
9 9
10 local gettime = os.time; 10 local gettime = os.time;
11 local datetime = require "util.datetime"; 11 local datetime = require "prosody.util.datetime";
12 local st = require "util.stanza"; 12 local st = require "prosody.util.stanza";
13 13
14 local default_history_length = 20; 14 local default_history_length = 20;
15 local max_history_length = module:get_option_number("max_history_messages", math.huge); 15 local max_history_length = module:get_option_number("max_history_messages", math.huge);
16 16
17 local function set_max_history_length(_max_history_length) 17 local function set_max_history_length(_max_history_length)