mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Improve parsing of ejabberd_sm:get_user_info result.
SVN Revision: 2858
This commit is contained in:
parent
89bceb959a
commit
38dfef923c
@ -1703,7 +1703,10 @@ user_info(User, Server, Query, Lang) ->
|
||||
UserB, ServerB, R) of
|
||||
offline ->
|
||||
"";
|
||||
[{node, Node}, {conn, Conn}, {ip, {IP, Port}}] ->
|
||||
Info when is_list(Info) ->
|
||||
Node = proplists:get_value(node, Info),
|
||||
Conn = proplists:get_value(conn, Info),
|
||||
{IP, Port} = proplists:get_value(ip, Info),
|
||||
ConnS = case Conn of
|
||||
c2s -> "plain";
|
||||
c2s_tls -> "tls";
|
||||
|
Loading…
Reference in New Issue
Block a user