The following are channel modes, along with their explanations, that can be used with Nefarious IRCu to assist you in running a channel. (NOTE: All modes require operator (@) status in the channel to work
|Mode "b" - Ban||This mode is used to prevent a user matching the mask that has been banned from joining the channel. There are three effective ban masks that wildcard different portions of the nick's fulladdress:||*!*@host.domain
*!*@188.8.131.52 This bans the person until they re-dial in to their ISP (thus changing their host). If they have a static IP address, it bans them until the ban is lifted. This is generally sufficient to make them stop their behaviour. (In a way, it's almost like a self-imposed G-line in your channel)
*!*firstname.lastname@example.org.* This bans just that one person from that ISP. Dialing in again won't affect this ban, but changing userid's will. Normally, people don't change their userid very often, so this ban is quite effective.
*!*@12.34.56.* This is a site ban; it will ban everyone from that ISP. This is most useful when you have a problem user from a certain ISP (domain) that keeps changing their nick or userid and keeps dialing back in. However, it also bans everyone else from that domain as well.
NOTE: Banning someone by their IP will prevent them from rejoining regardless of the address used; what this means for operators is that if someone is using virtual hosts that all are from the same actual IP, banning their IP will prevent them from entering the channel, regardless of what hostname it resolves to.
Mode "e" - Exception
Exceptions are like a special retnal scan that allows you to join a channel if you match, even if you also match a ban (+b). It uses mask just like +b (above) but instead of keeping that person out, they let them in as an exception.
|Mode "i" - Invite Only||This mode allows makes the channel reject joins. In order for someone to join the channel, they have to be invited in by an operator in the channel or services such as X2 (or have the key, see +k below). This mode is normally used for private meetings where you don't want the public involved. An operator (@) in the channel can type /invite nick #channel.||Example: /invite bob #privatechat
|Mode "k" - Keyed||This mode puts a key (or password) on the channel. You must know the key to get in. To use it, you type /join #channel key. For example, if my channel's key is set to "thisisthepassword", and one were banned, they would have to "/join #channel thisisthepassword" to get in. The key mode can only be removed or changed by using the current key (/mode -k thisisthepassword).||To add/change a key (+k) to a channel:
/mode #chan +k key
Example: /mode +k thisisthepassword
To remove a key (+k) from a channel:
/mode #chan -k key
Example: /mode #chan -k thisisthepassword
To join a channel that is keyed (+k):
/join #chan key
Example: /join #privatechat thisisthepassword
|Mode "l" - Limit||A channel can have a limit to the number of users that can be in it. This mode requires a parameter to set it and number following it (example: /mode +l 15). Once the limit is reached, no more users will be allowed in the channel until there is fewer users, or they get an invite. If the number you try to limit the channel to is 0, the IRCd will automatically set it to 1. This mode is unset by unsetting the mode with no parameter (/mode -l). This method proves useful in preventing floodbots, but is not suggested for large channels or channels that have user counts that may fluctuate unless you get a bot that keeps it updated.||To limit the number of users in a channel:
/mode #chan +l
Example: /mode #chan +l 15
To remove the limit on the number of users in a channel:
/mode #chan -l
|Mode "m" - Moderated||A moderated channel restricts normal users from sending text into the channel. Only the ops (+o) and users that are voiced (+v - see Mode "V" later on in this article for information) can talk in the channel. This has two main uses: silencing flooders in the channel, and creating a lecture-type situation (like a classroom) where the flow of text from the lecturer isn't altered by the users in the channel. If used with +k (key), people who join with the key will automatically get +v so they can talk when they join.||Also, if a channel is moderated, clients are blocked from changing their nicks while in that moderated channel.
Mode "M" - Moderate unregistered
A M moderated channel restricts normal users who have not authed to AuthServ (or using the /auth command) from sending text into the channel. Only the ops, halfops, voiced users, and registered users (+o/+h/+v or registered) can talk in the channel.
Also, if a channel is moderated, clients are blocked from changing their nicks while in that moderated channel.
|Mode "r" - Registered users only||Setting +r makes it so that users who have not used /auth to authenticate to AuthServ cannot join your channel.||/mode #chan +r|
|Mode "n" - No external channel messages||This mode prevents text from being sent into the channel from a nick that is not in the channel. In most channels, this is very distracting because you cannot reply to what was said - they are not in the channel to see your reply. Setting this mode is the default for most people||/mode #chan +n|
|Mode "o" - Channel Operator||This is how someone is manually opped (without using Services to op them). This is the command that puts the @ beside someone's nick. It gives them the power to change modes on the channel and kick/ban people from the channel.||VERY IMPORTANT: Be careful who you make an op in your channel, because even if you are the founder, they can still kick and ban you! (unless services are in the channel.) See halfops for a safer alternative.
To op someone in the channel, type"
/mode #chan +o nick
Example: /mode #channel +o bob
To de-op someone in the channel, type"
/mode #chan -o nick
Example: /mode #channel -o bob
|Modes "p" and "s" - Private and Secret||The channel flag 'p' is used to mark a channel "private" and the channel flag 's' to mark a channel "secret". Both properties are similar and conceal the existence of the channel from other users. The only difference is that private channels show up as *private* while secret channels don't show up at all. You cannot set both at the same time.|
This means that there is no way of getting this channel's name from the server, and noone can tell (from the WHOIS command) that you are in it.
These modes are good for avoiding spammers and unwanted users, but does not keep them from entering the channel if they already know it exists.
/mode #chan +p (for private)
/mode #chan +s (for secret)
|Mode "t" - Only ops can change the Topic||This mode restricts changing the topic to only the channel operators (Services can still over-ride this). Mainly, this is used to keep the topic in line. This mode in addition to +n is generally set by everyone.||Example:
/mode #chan +t
|Mode "v" - Voice user(s) in the channel||This command allows a normal user in the channel to send text into a moderated (+m or +M) channel. In channels that are not moderated, it is frequently used as a status indicator for that nick. In help channels, for instance, it's used to indicate users who help and are "recognized" as helpers by the staff of the channel, perhaps channel operators in training. In chat channels, it might indicate a favored user. In some channels, it is used to indicate gender.||To voice someone in the channel, type
/mode #chan +v nick
Example: /mode #chat +v bob
To de- voicesomeone in the channel, type
/mode #chan -v
Example: /mode #chat -v bob
|Modes "c" and "C" - No colors/ctcps||Setting +c blocks mIRC color codes from your channel, and +C blocks CTCP messages (except for /me's). The user will get a message in their status that says they cannot send to channel.||/mode #chan +c/+C|
|Mode +S - Strip control chars||This is similar to +c, only instead of telling the user they cannot send to channel, the color codes are just automatically removed from the messages.||/mode #chan +S|
|Modes +L and +p - No modes in /list, No /List||Setting +p in your channel stops it from appearing in the /list but is not secret or private when people /whois you. Its good for cutting down on spammers and annoying transients.|
Setting +L stops the channels modes from showing in the /list.
|/mode #chan +L/+p|
|Mode +Q - Strip quit/part message reasons||This mode removes the sometimes annoying part messages and quit messages. (You still see the part or quit, just not the message attached to it). This is done because many scripts use these messages to spam and its annoying.||/mode #chan +Q|
|Mode +T - No amsgs||This mode stops the channel from being a target of /amsg, a mass-messaging feature of ircu. Use this if you are frquently vulnerable to /amsg spam.||/mode #chan +T|
|Mode +Z - SSL only||This mode makes it so that only those connected via SSL can join (without an invite.) Note you must be connected with SSL to change this mode.||/mode #chan +Z|