From: Lo?c C. <lo...@us...> - 2001-06-13 18:08:46
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv8268/chat/lib Modified Files: check_and_kick_user.lib.php3 Log Message: Moderators may stay connected in the chat even if they are away Index: check_and_kick_user.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/check_and_kick_user.lib.php3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** check_and_kick_user.lib.php3 2001/06/10 14:57:47 1.16 --- check_and_kick_user.lib.php3 2001/06/13 18:08:44 1.17 *************** *** 112,119 **** // ... the time to ensure the user won't be cleaned from the // connected users table except if the user is 'away' or this ! // library is not called because he has sent a message if ($doUpdate) { ! if ($away == 1) { $dbSessionVars['away'] = 0; --- 112,119 ---- // ... the time to ensure the user won't be cleaned from the // connected users table except if the user is 'away' or this ! // library is called because he/she has sent a message if ($doUpdate) { ! if ($dbSessionVars['away'] == 1) { $dbSessionVars['away'] = 0; *************** *** 125,128 **** --- 125,135 ---- $checkLink->query("UPDATE " . C_USR_TBL . " SET u_time = $updTime WHERE session_id = '$dbSessionId'"); } + } + // ... the time to ensure a moderator who is away won't be cleaned + // from the connected users table + else if ($dbSessionVars['status'] >= C_DEL_AWAY_LEVEL + && $dbSessionVars['away'] == 1) + { + $checkLink->query("UPDATE " . C_USR_TBL . " SET u_time = $updTime WHERE session_id = '$dbSessionId'"); } } |