Fixed toxloss messages.

Also added anti-spam checks to custom_pain
Merge pull request #2540 from CIB/feature

Fixed toxloss messages.