Update of /cvsroot/x2serv/x2/source
In directory usw-pr-cvs1:/tmp/cvs-serv10334
Modified Files:
chan.c commands.c
Log Message:
Fixed bug in expirechans and unvisited processing unreged chans older than
30 days
Index: chan.c
===================================================================
RCS file: /cvsroot/x2serv/x2/source/chan.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -r1.71 -r1.72
*** chan.c 2001/02/15 15:39:19 1.71
--- chan.c 2001/02/28 08:35:38 1.72
***************
*** 1874,1878 ****
{
NextChanPtr = TempChanPtr->Next;
! if( !(TempChanPtr->settings[NODELETE]) && (TempChanPtr->LastAccess > 0)) /* If its not marked nodelete */
{
if ((time(NULL) - TempChanPtr->LastAccess) > 86400 * CHANEXPIREDAYS) /* older than CHANEXPIREDAYS days */
--- 1874,1878 ----
{
NextChanPtr = TempChanPtr->Next;
! if((TempChanPtr->Regged) && !(TempChanPtr->settings[NODELETE]) && (TempChanPtr->LastAccess > 0)) /* If its not marked nodelete */
{
if ((time(NULL) - TempChanPtr->LastAccess) > 86400 * CHANEXPIREDAYS) /* older than CHANEXPIREDAYS days */
Index: commands.c
===================================================================
RCS file: /cvsroot/x2serv/x2/source/commands.c,v
retrieving revision 1.132
retrieving revision 1.133
diff -C2 -r1.132 -r1.133
*** commands.c 2001/02/18 07:42:46 1.132
--- commands.c 2001/02/28 08:35:38 1.133
***************
*** 2198,2201 ****
--- 2198,2206 ----
while (ChanPtr)
{
+ if (!ChanPtr->Regged)
+ {
+ ChanPtr = ChanPtr->Next;
+ break;
+ }
if (ChanPtr->LastAccess == 0)
{
|