Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 11040:c560531d9a6e | 11041:d00bfa75999d |
|---|---|
| 541 line[#line+1] = "(compressed)"; | 541 line[#line+1] = "(compressed)"; |
| 542 end | 542 end |
| 543 if session.smacks then | 543 if session.smacks then |
| 544 line[#line+1] = "(sm)"; | 544 line[#line+1] = "(sm)"; |
| 545 end | 545 end |
| 546 if session.state then | |
| 547 line[#line+1] = string.format("(csi:%s)", session.state); | |
| 548 end | |
| 546 if session.ip and session.ip:match(":") then | 549 if session.ip and session.ip:match(":") then |
| 547 line[#line+1] = "(IPv6)"; | 550 line[#line+1] = "(IPv6)"; |
| 548 end | 551 end |
| 549 if session.remote then | 552 if session.remote then |
| 550 line[#line+1] = "(remote)"; | 553 line[#line+1] = "(remote)"; |