...
 
Commits (2)
......@@ -264,7 +264,7 @@ int refresh_data(gpointer data)
sprintf(str,"Error reading node data (%d)!",j);
node.status=NODE_WFC;
}
j=(node.status==NODE_QUIET || node.status==NODE_INUSE);
j=(node.status >= NODE_LOGON && node.status <= NODE_QUIET);
w=GTK_WIDGET(gtk_builder_get_object (builder, "bChatWithUser"));
gtk_widget_set_sensitive(w, j);
......
......@@ -1192,7 +1192,7 @@ USAGE:
uifc.msg("Error reading node data!");
continue;
}
if(node.status >= NODE_INUSE && node.status <= NODE_QUIET && node.useron) {
if(node.status >= NODE_LOGON && node.status <= NODE_QUIET && node.useron) {
int result = chat(&cfg,main_dflt,&node,&boxch,NULL);
if(result != 0)
uifc.msgf("Chat error: %d (%s)", result, strerror(errno));
......@@ -1261,7 +1261,7 @@ USAGE:
continue;
if(j<=cfg.sys_nodes && j>0) {
if(node.status >= NODE_INUSE && node.status <= NODE_QUIET && node.useron) {
if(node.status >= NODE_LOGON && node.status <= NODE_QUIET && node.useron) {
i=0;
strcpy(opt[i++],"Edit User");
strcpy(opt[i++],"Spy on node");
......