| 297 |
|
|
| 298 |
|
if (!IsGotId(source_p)) |
| 299 |
|
{ |
| 300 |
< |
char username[USERLEN + 1]; |
| 300 |
> |
char username[USERLEN + 1] = ""; |
| 301 |
|
const char *p = username; |
| 302 |
|
unsigned int i = 0; |
| 303 |
|
|
| 370 |
|
/* valid user name check */ |
| 371 |
|
if (!valid_username(source_p->username, 1)) |
| 372 |
|
{ |
| 373 |
< |
char tmpstr2[IRCD_BUFSIZE]; |
| 373 |
> |
char tmpstr2[IRCD_BUFSIZE] = ""; |
| 374 |
|
|
| 375 |
|
sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE, |
| 376 |
|
"Invalid username: %s (%s@%s)", |
| 385 |
|
if (check_xline(source_p)) |
| 386 |
|
return; |
| 387 |
|
|
| 388 |
< |
while (hash_find_id((id = uid_get())) != NULL) |
| 388 |
> |
while (hash_find_id((id = uid_get()))) |
| 389 |
|
; |
| 390 |
|
|
| 391 |
|
strlcpy(source_p->id, id, sizeof(source_p->id)); |
| 540 |
|
introduce_client(struct Client *source_p) |
| 541 |
|
{ |
| 542 |
|
dlink_node *server_node = NULL; |
| 543 |
< |
char ubuf[IRCD_BUFSIZE]; |
| 543 |
> |
char ubuf[IRCD_BUFSIZE] = ""; |
| 544 |
|
|
| 545 |
|
if (MyClient(source_p)) |
| 546 |
|
send_umode(source_p, source_p, 0, SEND_UMODES, ubuf); |
| 756 |
|
set_user_mode(struct Client *source_p, const int parc, char *parv[]) |
| 757 |
|
{ |
| 758 |
|
unsigned int flag, setflags; |
| 759 |
< |
char **p, *m, buf[IRCD_BUFSIZE]; |
| 759 |
> |
char **p, *m, buf[IRCD_BUFSIZE] = ""; |
| 760 |
|
struct Client *target_p; |
| 761 |
|
int what = MODE_ADD, badflag = 0, i; |
| 762 |
|
|
| 962 |
|
send_umode_out(struct Client *client_p, struct Client *source_p, |
| 963 |
|
unsigned int old) |
| 964 |
|
{ |
| 965 |
< |
char buf[IRCD_BUFSIZE] = { '\0' }; |
| 965 |
> |
char buf[IRCD_BUFSIZE] = ""; |
| 966 |
|
dlink_node *ptr = NULL; |
| 967 |
|
|
| 968 |
|
send_umode(NULL, source_p, old, SEND_UMODES, buf); |
| 1021 |
|
|
| 1022 |
|
DLINK_FOREACH(ptr, target_p->channel.head) |
| 1023 |
|
{ |
| 1024 |
< |
char modebuf[4], nickbuf[NICKLEN * 3 + 3] = { '\0' }; |
| 1024 |
> |
char modebuf[4], nickbuf[NICKLEN * 3 + 3] = ""; |
| 1025 |
|
char *p = modebuf; |
| 1026 |
|
int len = 0; |
| 1027 |
|
const struct Membership *ms = ptr->data; |
| 1095 |
|
sendto_one_numeric(source_p, &me, RPL_MYINFO, me.name, ircd_version, umode_buffer); |
| 1096 |
|
show_isupport(source_p); |
| 1097 |
|
|
| 1098 |
< |
if (source_p->id[0] != '\0') |
| 1098 |
> |
if (source_p->id[0]) |
| 1099 |
|
sendto_one_numeric(source_p, &me, RPL_YOURID, source_p->id); |
| 1100 |
|
|
| 1101 |
|
show_lusers(source_p); |
| 1118 |
|
{ |
| 1119 |
|
++conf->count; |
| 1120 |
|
|
| 1121 |
< |
if (conf->reason != NULL) |
| 1121 |
> |
if (conf->reason) |
| 1122 |
|
reason = conf->reason; |
| 1123 |
|
else |
| 1124 |
|
reason = CONF_NOREASON; |