aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2014-09-28 21:06:50 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2014-09-28 21:06:50 +0200
commit759fbb65db290ea14914990b1423204b394ca764 (patch)
tree62752788f83b6119fa8465d1d6d9408d72a75f92
parent0504583316908806a24c975e9acb775a44d2c317 (diff)
downloadprosody-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.lua4
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