diff --git a/src/server/session.c b/src/server/session.c index 96b872c098f5a406f49d47b3c73dc70e4cc7c4ce..fd06a5ffdc4154d4712710de0edbf57a5d03874c 100644 --- a/src/server/session.c +++ b/src/server/session.c @@ -1,5 +1,5 @@ /* - * $Id: session.c,v 0.8 1992/04/06 21:19:12 ceder Exp $ + * $Id: session.c,v 0.9 1992/04/07 14:53:31 ceder Exp $ * Copyright (C) 1991 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -28,7 +28,7 @@ * Session control and miscellaneous. */ -static char *rcsid = "$Id: session.c,v 0.8 1992/04/06 21:19:12 ceder Exp $"; +static char *rcsid = "$Id: session.c,v 0.9 1992/04/07 14:53:31 ceder Exp $"; #include <time.h> @@ -88,7 +88,6 @@ login_old (Pers_no pers_no, GET_P_STAT(pers_p, pers_no, FAILURE); - active_connection->invisible = FALSE; #if 0 if ( !logins_allowed && !pers_p->privileges.wheel) { @@ -106,6 +105,8 @@ login_old (Pers_no pers_no, logout(); /*+++ How many tries are allowed before disconnection? */ + active_connection->invisible = FALSE; + ACTPERS = pers_no; ACT_P = pers_p; @@ -161,8 +162,6 @@ login (Pers_no pers_no, GET_P_STAT(pers_p, pers_no, FAILURE); - active_connection->invisible = !!invisible; /* Normalize 17. */ - #if 0 if ( !logins_allowed && !pers_p->privileges.wheel) { @@ -180,6 +179,8 @@ login (Pers_no pers_no, logout(); /*+++ How many tries are allowed before disconnection? */ + active_connection->invisible = !!invisible; /* Normalize 17. */ + ACTPERS = pers_no; ACT_P = pers_p; @@ -233,7 +234,7 @@ logout( void ) { if ( ACTPERS != 0 ) /* Is he logged in? Then log him out. */ { - if (active_connection->invisible) + if (!active_connection->invisible) { async_i_am_off( ACTPERS ); async_logout( ACTPERS, active_connection->session_no ); @@ -340,7 +341,6 @@ change_what_i_am_doing (String what_am_i_doing) if (!active_connection->invisible) { - info.person = ACTPERS; info.what_am_i_doing = active_connection->what_am_i_doing; info.username = active_connection->username;