Skip to content
Snippets Groups Projects
Commit 2151ffda authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix cosmetic issue with Logging-out node vstatus display (NodeStatusLogout)

When displaying this node vstatus, the user's alias shouldn't be appended to
the node status, else you get something like this:

16  Logging out Digital ManDigital Man
parent 7f769de4
No related branches found
No related tags found
No related merge requests found
...@@ -212,14 +212,17 @@ function node_status(node, is_sysop, options, num) ...@@ -212,14 +212,17 @@ function node_status(node, is_sysop, options, num)
output += node_connection_desc(node); output += node_connection_desc(node);
break; break;
case NODE_LOGOUT: case NODE_LOGOUT:
output += node.vstatus || NodeStatus[node_status]; if (node.vstatus)
output += node.vstatus
else {
output += NodeStatus[node_status];
if(options.username_prefix) if(options.username_prefix)
output += options.username_prefix; output += options.username_prefix;
if(js.global.bbs && (misc&NODE_ANON) && !is_sysop) if(js.global.bbs && (misc&NODE_ANON) && !is_sysop)
output += bbs.text(UNKNOWN_USER); output += bbs.text(UNKNOWN_USER);
else else
output += system.username(node.useron); output += system.username(node.useron);
}
break; break;
default: default:
output += node.vstatus || format(NodeStatus[node_status], node.aux); output += node.vstatus || format(NodeStatus[node_status], node.aux);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment