25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

* src/web/ejabberd_web_admin.erl: Show IP address of connected

resources on user info page (thanks to Oleg Palij)

SVN Revision: 781
This commit is contained in:
Alexey Shchepin 2007-06-10 18:13:37 +00:00
parent 3b7e23df5a
commit 241c49dc3c
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-06-10 Alexey Shchepin <alexey@sevcom.net>
* src/web/ejabberd_web_admin.erl: Show IP address of connected
resources on user info page (thanks to Oleg Palij)
2007-06-07 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_config.erl: Fixed "language" option processing

View File

@ -1493,7 +1493,18 @@ user_info(User, Server, Query, Lang) ->
_ ->
[?XE("ul",
lists:map(fun(R) ->
?LI([?C(R)])
FIP = case ejabberd_sm:get_user_ip(
User, Server, R) of
undefined ->
"";
{IP, Port} ->
" (" ++
inet_parse:ntoa(IP) ++
":" ++
integer_to_list(Port)
++ ")"
end,
?LI([?C(R ++ FIP)])
end, lists:sort(Resources)))]
end,
Password = ejabberd_auth:get_password_s(User, Server),