equal
deleted
inserted
replaced
14 local s_rep = string.rep; |
14 local s_rep = string.rep; |
15 local s_char = string.char; |
15 local s_char = string.char; |
16 local s_match = string.match; |
16 local s_match = string.match; |
17 local t_concat = table.concat; |
17 local t_concat = table.concat; |
18 |
18 |
19 local to_hex = require "util.hex".to; |
19 local to_hex = require "prosody.util.hex".to; |
20 |
20 |
21 local pcall = pcall; |
21 local pcall = pcall; |
22 local envload = require"util.envload".envload; |
22 local envload = require"prosody.util.envload".envload; |
23 |
23 |
24 if not math.type then |
24 if not math.type then |
25 require "util.mathcompat" |
25 require "prosody.util.mathcompat" |
26 end |
26 end |
27 |
27 |
28 local pos_inf, neg_inf = math.huge, -math.huge; |
28 local pos_inf, neg_inf = math.huge, -math.huge; |
29 local m_type = math.type; |
29 local m_type = math.type; |
30 |
30 |