Partall
From Scriptwiki
Parts all channels you are on.
/partall [message]
You can specify a message that will be shown if chanmode +u isn't set.
Example
/partall Parting all channels
Will let you part all channels with the message 'Parting all channels'.
See Also
You can part a specific channel with /part