[srvx-commits] CVS: services/src chanserv.c,1.161.2.74,1.161.2.75
Brought to you by:
entrope
From: Entrope <en...@us...> - 2001-08-15 02:47:18
|
Update of /cvsroot/srvx/services/src In directory usw-pr-cvs1:/tmp/cvs-serv23743/src Modified Files: Tag: rel-1_0 chanserv.c Log Message: only update "seen" for channels the user is in when they quit Index: chanserv.c =================================================================== RCS file: /cvsroot/srvx/services/src/chanserv.c,v retrieving revision 1.161.2.74 retrieving revision 1.161.2.75 diff -C2 -r1.161.2.74 -r1.161.2.75 *** chanserv.c 2001/08/14 21:17:12 1.161.2.74 --- chanserv.c 2001/08/15 02:47:14 1.161.2.75 *************** *** 4706,4709 **** --- 4706,4713 ---- for(channel = user->handle_info->channels; channel; channel = channel->next) { + if(!channel->channel->channel || IsSuspended(channel->channel) || !GetUserMode(channel->channel->channel, user)) + { + continue; + } channel->user->seen = now; channel->user->present = 0; |