Skip to content
Snippets Groups Projects
Commit 3d63246c authored by deuce's avatar deuce
Browse files

node_t.status is NOT a set of bitflags. (And this was actually working!)

parent defba51a
No related branches found
No related tags found
No related merge requests found
...@@ -469,7 +469,7 @@ int main(int argc, char** argv) { ...@@ -469,7 +469,7 @@ int main(int argc, char** argv) {
uifc.msg("Error reading node data!"); uifc.msg("Error reading node data!");
continue; continue;
} }
if((node.status&NODE_INUSE) && node.useron) if((node.status==NODE_INUSE) && node.useron)
chat(&cfg,main_dflt+1,&node,&boxch,uifc.timedisplay); chat(&cfg,main_dflt+1,&node,&boxch,uifc.timedisplay);
continue; continue;
} }
...@@ -553,10 +553,11 @@ int main(int argc, char** argv) { ...@@ -553,10 +553,11 @@ int main(int argc, char** argv) {
strcpy(opt[i++],"Spy on node"); strcpy(opt[i++],"Spy on node");
strcpy(opt[i++],"Node toggles"); strcpy(opt[i++],"Node toggles");
strcpy(opt[i++],"Clear Errors"); strcpy(opt[i++],"Clear Errors");
getnodedat(&cfg,j+1,&node,NULL); if(!getnodedat(&cfg,j+1,&node,NULL)) {
if((node.status&NODE_INUSE) && node.useron) { if((node.status==NODE_INUSE) && node.useron) {
strcpy(opt[i++],"Send message to user"); strcpy(opt[i++],"Send message to user");
strcpy(opt[i++],"Chat with user"); strcpy(opt[i++],"Chat with user");
}
} }
opt[i][0]=0; opt[i][0]=0;
i=0; i=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment