diff options
Diffstat (limited to 'src/irc/dcc')
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 4 | ||||
-rw-r--r-- | src/irc/dcc/dcc-files.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index c01077d3..6a38e93c 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -308,12 +308,12 @@ static void cmd_dcc_chat(gchar *data, IRC_SERVER_REC *server) cmd_return_error(CMDERR_NOT_CONNECTED); if (net_getsockname(server->handle, &addr, NULL) == -1) - cmd_return_error(CMDERR_GETSOCKNAME); + cmd_return_error(CMDERR_ERRNO); port = settings_get_int("dcc_port"); handle = net_listen(&addr, &port); if (handle == -1) - cmd_return_error(CMDERR_LISTEN); + cmd_return_error(CMDERR_ERRNO); dcc = dcc_create(DCC_TYPE_CHAT, handle, data, "chat", server, NULL); dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ, diff --git a/src/irc/dcc/dcc-files.c b/src/irc/dcc/dcc-files.c index 8ccdb11a..5acd35c9 100644 --- a/src/irc/dcc/dcc-files.c +++ b/src/irc/dcc/dcc-files.c @@ -513,7 +513,7 @@ static void cmd_dcc_send(gchar *data, IRC_SERVER_REC *server, WI_IRC_REC *item) if (net_getsockname(chat != NULL ? chat->handle : server->handle, &addr, NULL) == -1) { close(fh); - cmd_param_error(CMDERR_GETSOCKNAME); + cmd_param_error(CMDERR_ERRNO); } /* start listening */ @@ -522,7 +522,7 @@ static void cmd_dcc_send(gchar *data, IRC_SERVER_REC *server, WI_IRC_REC *item) if (h == -1) { close(fh); - cmd_param_error(CMDERR_LISTEN); + cmd_param_error(CMDERR_ERRNO); } /* skip path */ |