Software /
code /
prosody
Comparison
plugins/mod_admin_socket.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 | 12888:b8504b71735d |
child | 13592:34da8cc10b82 |
comparison
equal
deleted
inserted
replaced
12976:a187600ec7d6 | 12977:74b9e05af71e |
---|---|
14 if not have_unix or type(unix) ~= "table" then | 14 if not have_unix or type(unix) ~= "table" then |
15 module:log_status("error", "LuaSocket unix socket support not available or incompatible, ensure it is up to date"); | 15 module:log_status("error", "LuaSocket unix socket support not available or incompatible, ensure it is up to date"); |
16 return; | 16 return; |
17 end | 17 end |
18 | 18 |
19 local server = require "net.server"; | 19 local server = require "prosody.net.server"; |
20 | 20 |
21 local adminstream = require "util.adminstream"; | 21 local adminstream = require "prosody.util.adminstream"; |
22 local st = require "util.stanza"; | 22 local st = require "prosody.util.stanza"; |
23 | 23 |
24 local socket_path = module:get_option_path("admin_socket", "prosody.sock", "data"); | 24 local socket_path = module:get_option_path("admin_socket", "prosody.sock", "data"); |
25 | 25 |
26 local sessions = module:shared("sessions"); | 26 local sessions = module:shared("sessions"); |
27 | 27 |