What is the difference between /wc(closes the current window) and /part(parting the channel) commands in irssi IRC client? I am aware that in some occasions /part does not close a window(for example if connection with IRC server is lost or if it is not a channel window which one tries to close), but in general, what is the difference between those two seemingly nearly identical commands?


One closes the window (/wc), the other parts the channel (/part). Closing the window will also part the channel, but you can't '/part' other windows :-).

"Using the /wc method is useful for parting channels on disconnected networks. In these cases, simply using /part will not work." - https://quadpoint.org/articles/irssi/#query-windows


Source code:

| improve this answer | |
  • Why do you say that you can't /part other windows? You can use /part #channel regardless of the window. – Sly Dec 5 '15 at 16:03
  • /wc will close any window. /part is a more elegant way to leave a channel. You generally don't /part steve or /part status :-). /part also won't work if you wish to close a window on a disconnected channel. – Criveti Mihai Dec 5 '15 at 16:09
  • 1
    /part isn't particularly "elegant". It's just taking the arguments that you give it and turns it into a raw PART #channel :Quit message packet for the server. – Sly Dec 5 '15 at 16:12

Also related: /set autoclose_windows. If you are using /wjoin, then /wc would close the window and part all the channels. With /part, you can part a single channel. Similarly, /query and /unquery (or /query in the query) can be used for private messages.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.