Ocasionally I accidentally type passwords for various things into a channel window and press return. crazy

I s there a simple script which will stop it being sent?

Thanks.