Skip to content
Snippets Groups Projects
Commit 198e7661 authored by echicken's avatar echicken
Browse files

Respect the privacy of nodes that are in quiet mode. Other minor changes.

parent 3d21dcf3
No related branches found
No related tags found
No related merge requests found
......@@ -11,10 +11,12 @@ if(http_request.query.hasOwnProperty("action") && http_request.query.action.toSt
print("<b>Who's online</b><br><br>");
print("<table border=0 cellpadding=0 cellspacing=0 class='standardColor standardFont'>");
for(n in system.node_list) {
print("<tr><td>Node " + (parseInt(n) + 1) + ":&nbsp;</td>");
for(n = 0; n < system.node_list.length; n++) {
print("<tr><td>Node " + (n + 1) + ":&nbsp;</td>");
if(system.node_list[n].status == 3) {
print("<td>" + system.username(system.node_list[n].useron) + "</td></tr><tr><td>&nbsp;</td><td style=font-style:italic;>" + NodeAction[system.node_list[n].action] + "</td></tr>");
} else if(system.node_list[n].status == 4) {
print("<td style=font-style:italic;>" + NodeStatus[0] + "</td></tr>"); // Pretend to be WFC if in use but quiet. Edit here if you'd like to display quiet nodes differently.
} else {
print("<td style=font-style:italic;>" + NodeStatus[system.node_list[n].status] + "</td></tr>");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment