diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2014-09-28 21:06:50 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2014-09-28 21:06:50 +0200 |
commit | 3de9107807ae075a7e2cb9f49f942743dda30207 (patch) | |
tree | 62752788f83b6119fa8465d1d6d9408d72a75f92 /plugins | |
parent | 89a01cc8d9df143ec83a6bafbc4864fb7f3353df (diff) | |
download | prosody-3de9107807ae075a7e2cb9f49f942743dda30207.tar.gz prosody-3de9107807ae075a7e2cb9f49f942743dda30207.zip |
mod_admin_adhoc: Show IP in detailed version of online user listing
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index d5aaa0c4..79303528 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -345,7 +345,7 @@ local get_online_users_command_handler = adhoc_simple(get_online_users_layout, f count = count + 1; if fields.details then for resource, session in pairs(user.sessions or {}) do - local status, priority = "unavailable", tostring(session.priority or "-"); + local status, priority, ip = "unavailable", tostring(session.priority or "-"), session.ip or "<unknown>"; if session.presence then status = session.presence:child_with_name("show"); if status then @@ -354,7 +354,7 @@ local get_online_users_command_handler = adhoc_simple(get_online_users_layout, f status = "available"; end end - users[#users+1] = " - "..resource..": "..status.."("..priority..")"; + users[#users+1] = " - "..resource..": "..status.."("..priority.."), IP: ["..ip.."]"; end end end |