[srvx-commits] CVS: services/src proto-bahamut.c,1.38,1.39 proto-p10.c,1.67,1.68
                
                Brought to you by:
                
                    entrope
                    
                
            
            
        
        
        
    | 
      
      
      From: Entrope <en...@us...> - 2003-07-12 03:18:37
      
     | 
| Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv1160/src
Modified Files:
	proto-bahamut.c proto-p10.c 
Log Message:
do not send empty (but locked) channels in burst
Index: proto-bahamut.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-bahamut.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -r1.38 -r1.39
*** proto-bahamut.c	12 Jul 2003 02:59:50 -0000	1.38
--- proto-bahamut.c	12 Jul 2003 03:18:33 -0000	1.39
***************
*** 614,617 ****
--- 614,618 ----
      unsigned int nn;
  
+     if (!chan->members.used) return;
      /* send list of users in the channel.. */
      base_len = sprintf(line, ":%s SJOIN "FMT_TIME_T" %s ", self->name, chan->timestamp, chan->name);
Index: proto-p10.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-p10.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -r1.67 -r1.68
*** proto-p10.c	12 Jul 2003 02:59:50 -0000	1.67
--- proto-p10.c	12 Jul 2003 03:18:33 -0000	1.68
***************
*** 545,555 ****
      unsigned int n;
  
      base_len = sprintf(burst_line, "%s " P10_BURST " %s " FMT_TIME_T " ",
                         self->numeric, chan->name, chan->timestamp);
      len = irc_make_chanmode(chan, burst_line+base_len);
      pos = base_len + len;
!     if(len) {
!         burst_line[pos++] = ' ';
!     }
  
      /* dump the users */
--- 545,554 ----
      unsigned int n;
  
+     if (!chan->members.used) return;
      base_len = sprintf(burst_line, "%s " P10_BURST " %s " FMT_TIME_T " ",
                         self->numeric, chan->name, chan->timestamp);
      len = irc_make_chanmode(chan, burst_line+base_len);
      pos = base_len + len;
!     if (len) burst_line[pos++] = ' ';
  
      /* dump the users */
 |