To use antispam, enable it in hxd.conf.
Then configure etc/spam.conf to yours needs.
the format is like this:

Variable        TransID SpamCount
NewsGet         101   20

The variable is just for you to know what it is about. The transaction id (transid) is the transaction.

You can set SpamMax and SpamCheck values in hxd.conf

Here's how it works:
Hotline is made by transaction, each action has a corresponding transaction. When the transaction specified in spam.conf happens, the client SpamCurrent value is increased by the SpamCount given to that transaction. If ever SpamCurrent >= SpamMax, the client gets banned. Each SpamCheck seconds, SpamCurrent is resetted to zero. If no SpamCount value is given for a transaction (because not defined in spam.conf), it has a default value of 10.


------------

You may also notice that accounts having 'can_spam=1' in their access
won't get banned.
Also, thoses accounts holders won't be banned if they reconnect very
fast.

