title | ntitle | nsub | layout | command | command-groups | numerics | format | examples | supported-by-default | contributors | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PART IRC Command |
PART |
Leaves a channel |
command |
PART |
|
|
PART <channel>{,<channel>} [<reason>]
|
|
true |
|
The PART
command indicates that the client wants to leave one or more channels. In response, the server sends one or more PART
message to indicate that the request was successful.
{% include command-format-header.html %}
<channel>
: Name of the channel(s) to join, separated by commas.<reason>
: Optional reason which is shown to the other users in the channel.
A PART
message sent from the server indicates that someone has left a channel. In this case, the <prefix>
is the user that's left. If a user's PART
command is successful, they receive one of these messages. In addition, all other clients in the channel also receive a PART
message. For example, if dan
and alice
are on channel #irctoast
, and dan
parts, both of them will receive a PART
message indicating that dan
has left the channel. The examples illustrate this in action.
The channels are processed in order. If the channel exists and the user is joined to it, they are parted from the channel and send an appropriate PART
message. If the channel exists and the user isn't joined to it, they are sent an ERR_NOTONCHANNEL
reply and the server continues with the next channel. If the channel doesn't exist the user gets sent an ERR_NOSUCHCHANNEL
reply and the server continues.
Some servers only use the <reason>
after the client's been connected for a certain amount of time, to help prevent spam.