diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-07-13 16:39:49 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-07-13 16:39:49 +0000 |
commit | 4b1679900ab492406775091586ec006e344439d1 (patch) | |
tree | d1cb106e4fc3fa6312724b070166cd1581341947 /src/irc/irc-recv.c | |
parent | 99f03cd2a38d26dbd7f19c8ab317aecf3f294298 (diff) | |
download | weechat-4b1679900ab492406775091586ec006e344439d1.zip |
Setting "dcc_auto_resume" now used, and fixed address & pos conversion to unsigned long for DCC
Diffstat (limited to 'src/irc/irc-recv.c')
-rw-r--r-- | src/irc/irc-recv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index 55ebfa981..3394c819b 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -1419,9 +1419,9 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *arguments) pos2--; pos2[1] = '\0'; - dcc_add (server, DCC_FILE_RECV, (unsigned long) atol (pos_addr), + dcc_add (server, DCC_FILE_RECV, strtoul (pos_addr, NULL, 10), atoi (pos_port), host, -1, pos_file, NULL, - (unsigned long) atol (pos_size)); + strtoul (pos_size, NULL, 10)); return 0; } @@ -1478,7 +1478,7 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *arguments) pos2[1] = '\0'; dcc_accept_resume (server, pos_file, atoi (pos_port), - (unsigned long) atol (pos_start_resume)); + strtoul (pos_start_resume, NULL, 10)); return 0; } @@ -1535,7 +1535,7 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *arguments) pos2[1] = '\0'; dcc_start_resume (server, pos_file, atoi (pos_port), - (unsigned long) atol (pos_start_resume)); + strtoul (pos_start_resume, NULL, 10)); return 0; } @@ -1601,7 +1601,7 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *arguments) return -1; } - dcc_add (server, DCC_CHAT_RECV, (unsigned long) atol (pos_addr), + dcc_add (server, DCC_CHAT_RECV, strtoul (pos_addr, NULL, 10), atoi (pos_port), host, -1, NULL, NULL, 0); return 0; |