1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

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
This commit is contained in:
Timo Sirainen 2002-05-10 18:47:49 +00:00 committed by cras
parent 1ae2d31cc8
commit 5b5cd255e9

View File

@ -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);