# $EPIC: dcc_close.txt,v 1.4 2006/08/29 18:22:56 sthalik Exp $
dcc close [<type>|-all|*] [<nick>|-all|*] [“<filename>”]
DCC CLOSE cancels a DCC session:
- For DCC SEND, it rescinds the offer to send a file
- For DCC GET, it rejects our interest in receiving the file
- For DCC CHAT, it closes the dedicated chat connection
- For $connect(), it closes the raw client socket connection
- For $listen(), it closes the listening socket (but not any connections)
- For a file transfer in progress, it terminates the transfer early.
|The <type> argument is one of:|
|CHAT||for private one-to-one conversations|
|SEND||for outbound file transfers|
|GET||for inbound file transfers|
|RAW||for $connect()s or $listen()s|
|-ALL||for all DCCs of all of the above types|
|*||same as -ALL|
If you do not provide <filename> and there are multiple connections of a given <type> to <nick> open, the first such connection is closed.
There is no wildcard support for <type>, <nick>, or <filename>.
When you DCC CLOSE a pending connection (either an offer you have made to someone else, or an offer someone has made to you, but which has not been accepted), it is considered a DCC REJECT and a CTCP reply to the other peer will be send to notify them the connection will not be completed.
If you exit the client, all of your open DCC connections are closed.
To close an existing DCC CHAT connection with bob:
/dcc close chat bob
To reject an incoming DCC SEND connection from bob:
/dcc close get bob
To close all DCC CHAT connections:
/dcc close chat *
/dcc close chat -all
To close all DCC connections with or offered by bob:
/dcc close * bob
/dcc close -all bob
The DCC CLOSE command first appeared in ircII-2.1.2