Comparison

plugins/mod_external_services.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 12685:4d75663d1552
child 13209:c8d949cf6b09
comparison
equal deleted inserted replaced
12976:a187600ec7d6 12977:74b9e05af71e
1 1
2 local dt = require "util.datetime"; 2 local dt = require "prosody.util.datetime";
3 local base64 = require "util.encodings".base64; 3 local base64 = require "prosody.util.encodings".base64;
4 local hashes = require "util.hashes"; 4 local hashes = require "prosody.util.hashes";
5 local st = require "util.stanza"; 5 local st = require "prosody.util.stanza";
6 local jid = require "util.jid"; 6 local jid = require "prosody.util.jid";
7 local array = require "util.array"; 7 local array = require "prosody.util.array";
8 local set = require "util.set"; 8 local set = require "prosody.util.set";
9 9
10 local default_host = module:get_option_string("external_service_host", module.host); 10 local default_host = module:get_option_string("external_service_host", module.host);
11 local default_port = module:get_option_number("external_service_port"); 11 local default_port = module:get_option_number("external_service_port");
12 local default_secret = module:get_option_string("external_service_secret"); 12 local default_secret = module:get_option_string("external_service_secret");
13 local default_ttl = module:get_option_number("external_service_ttl", 86400); 13 local default_ttl = module:get_option_number("external_service_ttl", 86400);