Enable part commands in query window

If you run any command (/wc, /part, /close) in a query window, it sends
you to the status window with an error message.

This PR fixes that.