summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-files.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-05-10 11:32:21 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-05-10 11:32:21 +0000
commitee254bd146ada53c8f963810695f4123e9c9daea (patch)
tree3a9cc3a58ab0793d41aa62c115c84c704c9d78af /src/irc/dcc/dcc-files.c
parent58aaae794e4e06605ebf8b32bc79b3a434669bb3 (diff)
downloadirssi-ee254bd146ada53c8f963810695f4123e9c9daea.zip
DCC SEND fixed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@209 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-files.c')
-rw-r--r--src/irc/dcc/dcc-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-files.c b/src/irc/dcc/dcc-files.c
index da395196..8ccdb11a 100644
--- a/src/irc/dcc/dcc-files.c
+++ b/src/irc/dcc/dcc-files.c
@@ -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);