Ban user block

This block allows you to ban a user@host mask from connecting to the server. This is the same as adding a /KLINE on IRC, though it can also do a bit more complex things.

Syntax
ban user { mask ; reason ; };

The mask is a Mask item. The reason is the reason for a ban being placed.

IMPORTANT: A ban user { } block (and a KLINE) is only a local server ban, therefore the user may still connect to other servers on the network. If you want server-wide bans, use the  command (or Remote includes if you insist on configuration files).

Simple ban
ban user { mask *tirc@*.saturn.bbn.com; reason "Idiot"; }

Ban all except
There is the Except ban block to exempt users from all bans, but you can't really use it for broad exemptions like countries, since then you would no longer be able to ban users from such a country.

You can, however, use a ban user { } block with a mask::exclude-* item, to "ban all, except..": ban user { mask { mask *; exclude-country { NL; DE; FR; } }	reason "Your country is not allowed"; } NOTE:
 * Banning countries in general is not really nice
 * A better idea is to use require authentication { } instead, which still allows registered users in (users using SASL)