mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04: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:
parent
1ae2d31cc8
commit
5b5cd255e9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user