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?
Asked
Active
Viewed 831 times
3
Martin
- 7,284
- 40
- 125
- 208
2 Answers
3
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.
Nei
- 31
- 1
2
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
Documentation:
Source code:
- PART: src/irc/core/irc-commands.c - -
/* SYNTAX: PART [<channels>] [<message>] */ - WINDOW CLOSE: src/fe-common/core/window-commands.c -
/* SYNTAX: WINDOW CLOSE [<first> [<last>]] */ - WC: /irssi/irssi.conf - creates an alias
WC = "WINDOW CLOSE"
Rob W
- 898
- 1
- 8
- 17
Criveti Mihai
- 1,116
- 7
- 10
-
Why do you say that you can't `/part` other windows? You can use `/part #channel` regardless of the window. – Sly Dec 05 '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 05 '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 05 '15 at 16:12