mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
DCC SEND fixed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@209 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
58aaae794e
commit
ee254bd146
1 changed files with 1 additions and 1 deletions
|
|
@ -510,7 +510,7 @@ static void cmd_dcc_send(gchar *data, IRC_SERVER_REC *server, WI_IRC_REC *item)
|
|||
lseek(fh, 0, SEEK_SET);
|
||||
|
||||
/* get the IP address we use with IRC server */
|
||||
if (!net_getsockname(chat != NULL ? chat->handle : server->handle, &addr, NULL))
|
||||
if (net_getsockname(chat != NULL ? chat->handle : server->handle, &addr, NULL) == -1)
|
||||
{
|
||||
close(fh);
|
||||
cmd_param_error(CMDERR_GETSOCKNAME);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue