diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-10 18:47:49 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-10 18:47:49 +0000 |
commit | 5b5cd255e98bbfe113133d7e4f8ff76e9d3fc13a (patch) | |
tree | b7b8694431e2dd48e04cdd2b4ce396dff410c53e /src/irc/dcc | |
parent | 1ae2d31cc87539d3b5c745261977208e1861e3cb (diff) | |
download | irssi-5b5cd255e98bbfe113133d7e4f8ff76e9d3fc13a.zip |
don't send DCC REJECT when closing a connected DCC connection.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2767 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc')
-rw-r--r-- | src/irc/dcc/dcc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c index 712583d8..d29f607c 100644 --- a/src/irc/dcc/dcc.c +++ b/src/irc/dcc/dcc.c @@ -401,9 +401,12 @@ void dcc_reject(DCC_REC *dcc, IRC_SERVER_REC *server) { g_return_if_fail(dcc != NULL); - if (dcc->server != NULL) server = dcc->server; - if (server != NULL) { - signal_emit("dcc rejected", 1, dcc); + signal_emit("dcc rejected", 1, dcc); + + if (dcc->server != NULL) + server = dcc->server; + + if (server != NULL && dcc_is_connected(dcc)) { irc_send_cmdv(server, "NOTICE %s :\001DCC REJECT %s %s\001", dcc->nick, dcc_type2str(dcc->orig_type), dcc->arg); |