]> hackdaworld.org Git - my-code/ivac.git/commitdiff
bugfixed network_set_connection_info arguments
authorhackbard <hackbard>
Sun, 9 May 2004 16:39:16 +0000 (16:39 +0000)
committerhackbard <hackbard>
Sun, 9 May 2004 16:39:16 +0000 (16:39 +0000)
src/ivac.c

index ca12131325b82352b04bb7a3e36409d17e4dc79f..f4f69523a7738cf718a4219438c9c72c93eb90c6 100644 (file)
@@ -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)&&(channel<MAX_CONNECTIONS)) {
-        i=network_set_connection_info(&(ivac->net),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)