Like the /leave command, the /part command logs you off and disconnects you from a channel:
/part #channel
If you don’t specify a channel, then you will be disconnected from the channel that you are currently in.
/part