if(*jbuf)
(void) strcat(jbuf, ",");
- (void) strlcat(jbuf, name, sizeof(jbuf));
+ (void) rb_strlcat(jbuf, name, sizeof(jbuf));
}
if(parc > 2)
mode.mode |= MODE_DISFORWARD;
break;
case 'f':
- strlcpy(mode.forward, parv[4 + args], sizeof(mode.forward));
+ rb_strlcpy(mode.forward, parv[4 + args], sizeof(mode.forward));
args++;
if(parc < 5 + args)
return 0;
return 0;
break;
case 'k':
- strlcpy(mode.key, parv[4 + args], sizeof(mode.key));
+ rb_strlcpy(mode.key, parv[4 + args], sizeof(mode.key));
args++;
if(parc < 5 + args)
return 0;
*mbuf++ = 'k';
len = rb_sprintf(pbuf, "%s ", oldmode->key);
pbuf += len;
- pargs++;
}
if(oldmode->join_num && !mode->join_num)
{
*mbuf++ = 'l';
len = rb_sprintf(pbuf, "%d ", mode->limit);
pbuf += len;
- pargs++;
}
if(mode->key[0] && strcmp(oldmode->key, mode->key))
{
*mbuf++ = 'k';
len = rb_sprintf(pbuf, "%s ", mode->key);
pbuf += len;
- pargs++;
}
if(mode->join_num && (oldmode->join_num != mode->join_num || oldmode->join_time != mode->join_time))
{
*mbuf++ = 'j';
len = rb_sprintf(pbuf, "%d:%d ", mode->join_num, mode->join_time);
pbuf += len;
- pargs++;
}
if(mode->forward[0] && strcmp(oldmode->forward, mode->forward) && ConfigChannel.use_forward)
{
*mbuf++ = 'f';
len = rb_sprintf(pbuf, "%s ", mode->forward);
pbuf += len;
- pargs++;
}
*mbuf = '\0';
}