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 | 759fbb65db290ea14914990b1423204b394ca764 (patch) | |
tree | 62752788f83b6119fa8465d1d6d9408d72a75f92 | |
parent | 0504583316908806a24c975e9acb775a44d2c317 (diff) | |
download | prosody-759fbb65db290ea14914990b1423204b394ca764.tar.gz prosody-759fbb65db290ea14914990b1423204b394ca764.zip |
mod_admin_adhoc: Show IP in detailed version of online user listing
-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 |