Comparison

util/termcolours.lua @ 12975:d10957394a3c

util: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:16 +0100
parent 10423:317bcc4f25f5
comparison
equal deleted inserted replaced
12974:ba409c67353b 12975:d10957394a3c
19 local setmetatable = setmetatable; 19 local setmetatable = setmetatable;
20 local pairs = pairs; 20 local pairs = pairs;
21 21
22 local windows; 22 local windows;
23 if os.getenv("WINDIR") then 23 if os.getenv("WINDIR") then
24 windows = require "util.windows"; 24 windows = require "prosody.util.windows";
25 end 25 end
26 local orig_color = windows and windows.get_consolecolor and windows.get_consolecolor(); 26 local orig_color = windows and windows.get_consolecolor and windows.get_consolecolor();
27 27
28 local _ENV = nil; 28 local _ENV = nil;
29 -- luacheck: std none 29 -- luacheck: std none