Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 11041:d00bfa75999d
mod_admin_shell: Report CSI state in c2s:show()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Aug 2020 14:34:33 +0200 |
parent | 10988:9dcbbb1d12c3 |
child | 11042:8a243ab49cb5 |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Mon Aug 17 00:24:11 2020 +0200 +++ b/plugins/mod_admin_shell.lua Sat Aug 22 14:34:33 2020 +0200 @@ -543,6 +543,9 @@ if session.smacks then line[#line+1] = "(sm)"; end + if session.state then + line[#line+1] = string.format("(csi:%s)", session.state); + end if session.ip and session.ip:match(":") then line[#line+1] = "(IPv6)"; end