diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-25 22:53:22 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-25 22:53:22 +0000 |
commit | 2e886d62f5342e41ddb9dfc8660036667214b1c5 (patch) | |
tree | e089f635bca1f27cd88e0ef60aeeee7c1f722851 /src/fe-common/irc/dcc | |
parent | 776895eeac1e0936824ab4419ed5bbf77878576c (diff) | |
download | irssi-2e886d62f5342e41ddb9dfc8660036667214b1c5.zip |
Don't allow sending data to dcc chats if connection isn't finished yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@630 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/dcc')
-rw-r--r-- | src/fe-common/irc/dcc/fe-dcc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc.c b/src/fe-common/irc/dcc/fe-dcc.c index 1a593573..43f8ce32 100644 --- a/src/fe-common/irc/dcc/fe-dcc.c +++ b/src/fe-common/irc/dcc/fe-dcc.c @@ -306,7 +306,7 @@ static void cmd_msg(const char *data) return; dcc = dcc_find_item(DCC_TYPE_CHAT, target+1, NULL); - if (dcc == NULL) { + if (dcc == NULL || dcc->sendbuf == NULL) { printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, IRCTXT_DCC_CHAT_NOT_FOUND, target+1); } else { @@ -349,7 +349,7 @@ static void cmd_action(const char *data, SERVER_REC *server, WI_IRC_REC *item) if (*target == '\0' || *text == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); dcc = dcc_find_item(DCC_TYPE_CHAT, target+1, NULL); - if (dcc == NULL) { + if (dcc == NULL || dcc->sendbuf == NULL) { printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, IRCTXT_DCC_CHAT_NOT_FOUND, target+1); } else { @@ -379,7 +379,7 @@ static void cmd_ctcp(const char *data, SERVER_REC *server) } dcc = dcc_find_item(DCC_TYPE_CHAT, target+1, NULL); - if (dcc == NULL) { + if (dcc == NULL || dcc->sendbuf == NULL) { printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, IRCTXT_DCC_CHAT_NOT_FOUND, target+1); } else { |