Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands
In directory usw-pr-cvs1:/tmp/cvs-serv19752/chat/lib/commands
Modified Files:
join.cmd.php3
Log Message:
Update the away status when reloging & fix a bug when joining a private room
Index: join.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/join.cmd.php3,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** join.cmd.php3 2001/06/10 14:57:48 1.9
--- join.cmd.php3 2001/06/30 14:05:29 1.10
***************
*** 138,142 ****
{
// Ensure the user is a registered one
! if ($dbSessionVars['status'] > 0)
{
$error = L_ERR_USR_13;
--- 138,142 ----
{
// Ensure the user is a registered one
! if ($dbSessionVars['status'] < 1)
{
$error = L_ERR_USR_13;
***************
*** 199,203 ****
// 1. Messages and users table
$queries[] = 'UPDATE ' . C_USR_TBL . ' '
! . "SET u_time = $currentTime , room = '$slashedTargetRoomName', status = $status "
. "WHERE session_id = '$dbSessionId'";
$queries[] = 'INSERT INTO ' . C_MSG_TBL . ' '
--- 199,203 ----
// 1. Messages and users table
$queries[] = 'UPDATE ' . C_USR_TBL . ' '
! . "SET u_time = $currentTime , room = '$slashedTargetRoomName', status = $status, away = 0 "
. "WHERE session_id = '$dbSessionId'";
$queries[] = 'INSERT INTO ' . C_MSG_TBL . ' '
|