- {reply, "login"},\r
- {status, if (User#user.password =/= []) and (User#user.login =/= []) -> "auth_registered"; true -> "auth_not_registered" end},\r
- {cookie, User#user.cookie},\r
- {id, User#user.id},\r
- {nick, User#user.pseudo},\r
- {login, User#user.login},\r
- {email, User#user.email},\r
- {css, User#user.css},\r
- {chat_order, atom_to_list(User#user.chat_order)},\r
- {nick_format, atom_to_list(User#user.nick_format)},\r
- {view_times, User#user.view_times},\r
- {view_tooltips, User#user.view_tooltips},\r
- {conversations, {array, lists:map(\r
- fun({Racine, Reduit}) ->\r
- {struct, [{root, Racine}, {minimized, Reduit}]}\r
- end,\r
- User#user.conversations\r
- )}},\r
- {ek_master, User#user.ek_master},\r
- {ostentatious_master, atom_to_list(User#user.ostentatious_master)}\r
+ {"reply", "login"},\r
+ {"status", if (User#user.password =/= []) and (User#user.login =/= []) -> "auth_registered"; true -> "auth_not_registered" end},\r
+ {"cookie", User#user.cookie},\r
+ {"id", User#user.id},\r
+ {"login", User#user.login},\r
+ {"ek_master", User#user.ek_master},\r
+ {"profile", {struct,\r
+ [\r
+ {"nick", Profile#profile.pseudo},\r
+ {"email", Profile#profile.email},\r
+ {"css", Profile#profile.css},\r
+ {"chat_order", atom_to_list(Profile#profile.chat_order)},\r
+ {"nick_format", atom_to_list(Profile#profile.nick_format)},\r
+ {"view_times", Profile#profile.view_times},\r
+ {"view_tooltips", Profile#profile.view_tooltips},\r
+ {"conversations", {array, lists:map(\r
+ fun({Racine, Reduit}) ->\r
+ {struct, [{"root", Racine}, {"minimized", Reduit}]}\r
+ end,\r
+ Profile#profile.conversations\r
+ )}},\r
+ {"ostentatious_master", atom_to_list(Profile#profile.ostentatious_master)}\r
+ ]\r
+ }}\r