/help /ban
/ban [-kruN] [#channel] <nickname|address> [type]
For a list of ban types see the $mask identifier.
$mask(address,type)
Returns address with a mask specified by type.
$mask(nick!khaled@mirc.com,1) returns *!*khaled@mirc.com
$mask(nick!khaled@mirc.com,2) returns *!*@mirc.com
The available types are:
0: *!user@host
1: *!*user@host
2: *!*@host
3: *!*user@*.host
4: *!*@*.host
5: nick!user@host
6: nick!*user@host
7: nick!*@host
8: nick!*user@*.host
9: nick!*@*.host
So you specify a number from 0 to 9 to specify which mask type you want.