Log the lookup command in doveauth.lua

This commit is contained in:
link2xt
2023-10-13 18:48:42 +00:00
committed by missytake
parent 716b8169f8
commit dd9b33907a

View File

@@ -17,8 +17,10 @@ function chatctl_verify(user, password)
end end
function chatctl_lookup(user) function chatctl_lookup(user)
local cmd = "doveauth hexlookup "..escape(user)
assert(user) assert(user)
local handle = io.popen("doveauth hexlookup "..escape(user)) print("executing: "..cmd)
local handle = io.popen(cmd)
local result = handle:read("*a") local result = handle:read("*a")
handle:close() handle:close()
return split_chatctl(result) return split_chatctl(result)