About Bans

By Sabin

A user mask looks like: nickname!identd@ip/host

The Ban command is:

/mode #channel +b mask
or if you're using mIRC, you may use:
/ban #channel mask

If you need to utilize X, the syntax is:

/msg X ban #channel mask duration level reason

To ban a nickname, use a mask like this: nickname!*@* .
if the nickname length is more than 9 characters and you need to use X use this mask instead:
first8chars*!*@*, eg: if the nickname was Easterbunny, set ban on mask: Easterbu*!*@*
To ban an identd, use a mask like this: *!identd@*
To ban an ip/host, use a mask like this: *!*@ip/host

Remark: * replaces any number of characters, ? replaces a single character.

Common examples:

  1. I want to ban all persons having IP address starting with 81 in a channel.

    You have to place a ban on mask: *!*@81.*

  2. I want to ban all persons having IP address ending with 121 in a channel.

    The ban has to be placed on mask: *!*@*.121

  3. I want to ban all persons having their nicknames starting with "Alice" in a channel.

    Ban mask: Alice*!*@*

  4. I want to ban all persons having their nicknames ending with "jo" in a channel.

    Place ban on mask: *jo!*@*

  5. I want to ban all persons having in their nicknames "pro" in a channel.

    Set the ban on mask: *pro*!*@*

  6. I want to ban all persons having their identds starting with "id" in a channel.

    You have to place a ban on mask: *!id*@*

  7. I want to ban all persons having their identds ending with "erm" in a channel.

    The ban has to be placed on mask: *!*erm@*

  8. I want to ban all persons having in front of their identds "~" in a channel.

    Ban mask is: *!~*@*

  9. I want to ban all persons having their identds starting with two random characters in a channel. e.g.: Alice!~76me@202.81.59.14

    Place ban on mask: *!~??me@*

  10. I want to ban all persons having in their hosts "adsl" in a channel. e.g.: kjempen!~something@217-186-25.0503.adsl.tele2.no

    Set ban on mask: *!*@*.adsl.*