...
 
Commits (1)
......@@ -284,19 +284,19 @@ function web_users(max_inactivity)
const f = new File(e);
if (f.open('r')) {
const session = f.iniGetObject();
users.push({
name: user.alias,
usernum: un,
action: session.action,
age: user.age,
gender: user.gender,
location: user.location,
logontime: file_date(e), // TODO: this is probably not the actual logon time, but more like "last activity" time (?)
do_not_disturb: (user.chat_settings & CHAT_NOPAGE) ? true : undefined,
msg_waiting: (file_size(format(system.data_dir + "msgs/%04u.msg", un)) > 0) ? true : undefined
});
f.close();
}
users.push({
name: user.alias,
usernum: un,
action: session.action,
age: user.age,
gender: user.gender,
location: user.location,
logontime: file_date(e), // TODO: this is probably not the actual logon time, but more like "last activity" time (?)
do_not_disturb: (user.chat_settings & CHAT_NOPAGE) ? true : undefined,
msg_waiting: (file_size(format(system.data_dir + "msgs/%04u.msg", un)) > 0) ? true : undefined
});
});
return users;
}
......