I believe it's like this

ban user {
mask <hostmask>;
reason <reason-for-ban>;
};

Example
ban user {
mask *nick@*.ip.isnick.com;
reason "banned";
};