[srvx-commits] CVS: services/src proto-p10.c,1.41,1.42
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2002-10-29 21:07:41
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv9397/src
Modified Files:
proto-p10.c
Log Message:
Fix an off-by-one error in the burst output code that truncated modes by 1 character and could cause services to fail to burst into channels properly.
Index: proto-p10.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-p10.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -r1.41 -r1.42
*** proto-p10.c 29 Oct 2002 01:55:28 -0000 1.41
--- proto-p10.c 29 Oct 2002 21:07:37 -0000 1.42
***************
*** 542,547 ****
self->numeric, chan->name, chan->timestamp);
len = irc_make_chanmode(chan, burst_line+base_len);
! pos = base_len + len - 1;
! burst_line[pos++] = ' ';
/* dump the users */
--- 542,549 ----
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 */
|