X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Fivac.c;h=43b7ef6545f23cc5826ae92ffd8971de08093ce1;hp=ca12131325b82352b04bb7a3e36409d17e4dc79f;hb=eb0f685570bbc4e1f0f97d6d1bad5a905a1e036f;hpb=d03742fa15c23fa40b8e213cf948e5465508e07b diff --git a/src/ivac.c b/src/ivac.c index ca12131..43b7ef6 100644 --- a/src/ivac.c +++ b/src/ivac.c @@ -184,7 +184,7 @@ int ivac_event_cb(t_event *event,void *ptr) { else if(channel==N_E_MAXC) sprintf(c_str,"maximum connections reached"); else { - sprintf(c_str,"established connection from %s port %d on channel %d\n", + sprintf(c_str,"connection from %s port %d on channel %d", ivac->net.connection[channel].ip, ivac->net.connection[channel].port,channel); ivac_add_to_monitor(ivac,c_str); @@ -273,9 +273,7 @@ int ivac_parse_command(t_input *input,void *ptr) { sprintf(c_str,"changed username to %s",ivac->username); } else if((channel>=0)&&(channelnet),channel, - ivac->net.connection[channel].ip, - ivac->net.connection[channel].port); + i=network_set_connection_info(&(ivac->net),channel,arg[2],atoi(arg[3])); if(i==N_E_IN_USE) sprintf(c_str,"channel %02d: connection in use",channel); if(i==N_SUCCESS)