The easiest thing for your situation would be to utilize the blacklist feature. If someone is being toxic to you, or your friends; blacklist them. It makes it so you can't see their text at all. Have your friends do it too.

You can also make certain channels go on certain tabs in your chat log. My former FC leader has hers set up so that Tells and Shout are all on their own tabs and do not show up in her main log. If people's words are what's setting you off, then remove them or filter them so you can keep a clear head.