You can use this:
/mode #channel +b *!*@ip.of.user.hereExample:
/mode #mIRC +b *!*@123.456.789.012If the hostname has resolved it would be easier to just ban the hostname with:
/ban #channel nickname 2You can also use the -k switch in the above command if you're on mIRC 6.1 or above, this will kick the user aswell as ban them (i.e. /ban -k #channel nickname 2 kick-message)
This bans whatever is after the @ in their whois (
/whois nickname. You can put this in Aliases which will ban a user by their hostname/IP much more quickly than always typing out the above command:
kb ban $chan $1 2 | kick $chan $1 $2-To put this in Aliases press
ALT+D and put the code on a new line. To use it, simply type
/kb nickname reason-here.
There's quite a good document
here about being an OP and also has help on "advanced" banning.
Hope this helps
Regards,