Commit 1b719ca1 authored by rswindell's avatar rswindell
Browse files

Fix ;anon bug reported by altere (bbs.node_settings is something totally

different than node.misc).
A couple of other cosmetic changes.
parent 7766a279
...@@ -69,6 +69,7 @@ function str_cmds(str) ...@@ -69,6 +69,7 @@ function str_cmds(str)
if(file_exists(errlog)) { if(file_exists(errlog)) {
write(bbs.text(ErrorLogHdr)); write(bbs.text(ErrorLogHdr));
console.printfile(errlog); console.printfile(errlog);
console.aborted = false;
if(!console.noyes(bbs.text(DeleteErrorLogQ))) if(!console.noyes(bbs.text(DeleteErrorLogQ)))
file_remove(errlog); file_remove(errlog);
} }
...@@ -728,7 +729,7 @@ function str_cmds(str) ...@@ -728,7 +729,7 @@ function str_cmds(str)
//# Quiet Node //# Quiet Node
if(user.compare_ars("exempt Q")) { if(user.compare_ars("exempt Q")) {
if(str=="HELP") if(str=="HELP")
writeln("QUIET\tToggles quiet setting (you are not lised as online)."); writeln("QUIET\tToggles quiet setting (you are not listed as online).");
if(str=="QUIET") { if(str=="QUIET") {
if(system.node_list[bbs.node_num-1].status==NODE_QUIET) if(system.node_list[bbs.node_num-1].status==NODE_QUIET)
system.node_list[bbs.node_num-1].status=NODE_INUSE; system.node_list[bbs.node_num-1].status=NODE_INUSE;
...@@ -743,7 +744,7 @@ function str_cmds(str) ...@@ -743,7 +744,7 @@ function str_cmds(str)
writeln("\tmentioned)."); writeln("\tmentioned).");
} }
if(str=="ANON") { if(str=="ANON") {
bbs.node_settings ^= NODE_ANON; system.node_list[bbs.node_num-1].misc ^= NODE_ANON;
display_node(bbs.node_num); display_node(bbs.node_num);
return; return;
} }
...@@ -804,9 +805,9 @@ function str_cmds(str) ...@@ -804,9 +805,9 @@ function str_cmds(str)
if(str=="HELP") if(str=="HELP")
writeln("POFF\tToggles if other users can page you for this session."); writeln("POFF\tToggles if other users can page you for this session.");
if(str=="POFF") { if(str=="POFF") {
bbs.node_settings ^= NODE_POFF; system.node_list[bbs.node_num-1].misc ^= NODE_POFF;
write("Paging is "); write("Paging is ");
if(bbs.node_settings & NODE_POFF) if(system.node_list[bbs.node_num-1].misc & NODE_POFF)
writeln("OFF"); writeln("OFF");
else else
writeln("ON"); writeln("ON");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment