Difference between revisions of "Ban"

From Mibbit Wiki
Jump to: navigation, search
(Channel Bans)
(Channel Bans)
Line 35: Line 35:
 
When banning a nickname, it is useful to know that there are different types of user@host masks you can use. The table below shows what each result of using the command: /ban NICK #
 
When banning a nickname, it is useful to know that there are different types of user@host masks you can use. The table below shows what each result of using the command: /ban NICK #
  
## represents the numbers in the chart below. There are 9 different types of bans - they are as follows:
+
There are 9 different types of bans - they are as follows:
  
 
# *!user@host.domain
 
# *!user@host.domain
Line 47: Line 47:
 
# nick!*user@*.domain
 
# nick!*user@*.domain
 
# nick!*@*.domain
 
# nick!*@*.domain
 +
 +
To issue a quiet ban, use the following format:
 +
 +
/mode #chan +b ~q:*!*@host.domain
  
 
If you don't specify a type (number at the end of the ban), and you were to just type /ban #channel NICK then mIRC will ban the user's exact user@host.
 
If you don't specify a type (number at the end of the ban), and you were to just type /ban #channel NICK then mIRC will ban the user's exact user@host.

Revision as of 04:37, 13 January 2009

This page is lacking a lot of information. Feel obliged to add some.

A ban is a method of keeping users from returning to a specific channel or server.

Channel Bans

Banning in channels are done most commonly with the channel mode +b.

The IRC command for banning is:

   /mode #chan +b nickname!username@hostname.  

To make this easier, the Mibbit client has a default alias of /ban nickname!username@hostname.

To remove a ban, either use the IRC command of /mode #chan -b nickname!username@hostname or the Mibbit client default alias of /unban nickname!username@hostname or /deban nickname!username@hostname.

To view the banlist, use the command /mode #chan +b. A list of banned users is shown in the form of:
[cancel ban button] [nickname!username@hostname] [operator who banned] [time of ban]

If there are ops that are new to IRC, they may accidentally ban the entire channel by banning *!*@*. To easily recover from this, users can make sure certain hostmasks for unable to be banned with the channel mode +e. To use, find out what the hostname of the person is, and use the command /mode #chan +e *!*@hostname.

You must be a channel op or half op to set bans.

In most IRC clients you can simply type, /ban nick or /ban user@host.

Set a Ban with ChanServ:

You may wish to set a ban using ChanServ. Depending on the SIGNKICK settings of your channel this might mask which op set the ban (explained further below.) To set the ban type: /cs ban #channel nick reason If nick is not given, it will ban you. If channel and nick are not given, it will ban you on all channels you're on, provided you have the rights to. By default, limited to AOPs or those with level 5 access and above on the channel.

SIGNKICK Enables or disables signed kicks for a channel. When SIGNKICK is set, kicks issued with the ChanServ KICK or BAN commands will have the nick that used the command in their reason. If you use LEVEL, those who have a level that is superior or equal to the SIGNKICK level on the channel won't have their kicks signed. The command to set SIGNKICK is: /msg chanserv set #channel signkick {ON | LEVEL | OFF}

You can put a user@host in for the nickname instead if you like. For example, if we wanted to ban everyone from AOL, we would use the following: /ban #channel *!*@*aol.com and to remove that ban, we would use: /ban -r #channel *!*@*aol.com

When banning a nickname, it is useful to know that there are different types of user@host masks you can use. The table below shows what each result of using the command: /ban NICK #

There are 9 different types of bans - they are as follows:

  1. *!user@host.domain
  2. *!*user@host.domain
  3. *!*@host.domain
  4. *!*user@*.domain
  5. *!*@*.domain
  6. nick!user@host.domain
  7. nick!*user@host.domain
  8. nick!*@host.domain
  9. nick!*user@*.domain
  10. nick!*@*.domain

To issue a quiet ban, use the following format:

/mode #chan +b ~q:*!*@host.domain

If you don't specify a type (number at the end of the ban), and you were to just type /ban #channel NICK then mIRC will ban the user's exact user@host.

  1. channel isn't totally necessary either. If you are on typing in a channel window, for example, #channel, you could use: /ban NICK 3

The above command would result in NICK being banned from #channel with the hostmask: *!*user@*.domain