mIRC ScriptBox
IRC Channel Modes

Written by Hammer

Introduction

These modes are all changed by a channel operator using /mode #channel mode. The current channel mode settings can be retrieved by omitting the modes parameter completely.
Also, the ban list for a channel can be retrieved using just /mode #channel +b with no ban mask(s) after it.

NOTE 1: Only six (6) modes changes, in any order you choose, are allowed in one mode command.

NOTE 2: The modes presented here may not be available on some networks.


Channel Modes  Back to Top

  • b - Ban
  • c - No colours allowed
  • h - Channel Helper (HalfOp)
  • i - Invite only
  • k - Key
  • l - Limit
  • m - Moderated
  • M - Only Registered nicks can speak
  • n - No external channel messages
  • o - Channel Operator
  • O - IRC Operators only
  • p - Private
  • r - Registered channel with ChanServ
  • R - Only Registered nicks can join
  • s - Secret
  • t - Only ops change the Topic
  • v - Voice in the channel


b - Ban  Back to Top

Syntax: /Mode channel [+|-] b banmask

This mode is used to prevent a user matching the banmask from joining the channel. There are three effective ban masks that wildcard different portions of the nick's fulladdress (nick!userid@host.domain or nick!userid@12.34.56.78):

Mask    Usage


*!*@host.domain
*!*@12.34.56.78

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 /kill, but worse: they have to completely disconnect from their ISP and dial in again.)

*!*userid@*.domain
*!*userid@12.34.56.*

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.

*!*@*.domain
*!*@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 vhosts that all resolve to the same IP (very common), banning their IP will prevent them from entering the channel, regardless of vhost. The IRCd will check to ensure that they do not match an IP ban in the channel before allowing them entry to that channel.


c - No Colours Allowed  Back to Top

This mode prevents people from sending messages or notices into a channel which contain colour codes. It will not prevent bold, underline or reverse. If a client parts the channel with a colourful part message, it will be blocked as well. If a client quits with a colourful message, the server will first part the client from the channel without a part message and then quit the client.


h - Channel Helper  Back to Top

This is how someone is manually halfopped (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 people from the channel. Halfops can not op users or kick Operators.


i - Invite Only  Back to Top

This mode allows makes the channel reject joins. In order for someone to join the channel, they have to be invited in by an op in the channel or ChanServ. This mode is normally used for private meetings where you don't want anyone else involved or watching. An operator in the channel can type /invite nick #channel; an AOP (or higher) can type /chanserv invite #channel.


k - Channel Key  Back to Top

This mode puts a key (or password) on the channel. If the channel is set +k with a key, a user wanting to join the channel would have to know the correct password to /join #channel key. For example, if my channel's key is set to Ff0983h*GNOi4o8yd098g- I would have to /join #MyChannel Ff0983h*GNOi4o8yd098g- to get in. This mode can be changed by a channel operator by simply reissuing the mode (+k turtle). This mode must be unset using the current key (-k Ff0983h*GNOi4o8yd098g-).


l - Channel Limit  Back to Top

A channel can have a limit to the number of nicks that can be in it; this mode requires a parameter to set it and number following it (+l 15). 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 (-l).


m - Moderated Channel  Back to Top

A moderated channel restricts normal users from sending text into the channel. Only the ops (+o) and voices (+v) 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.

Also, if a channel is moderated, clients are blocked from changing their nicks while in that moderated channel, with the exception of services changing them to a Guest nick.


M - Only Registered Nicks can speak  Back to Top

A +M channel restricts unregistered users from sending text into the channel. Only the registered users can talk in the channel. This has one main uses: silencing flooders in the channel.


n - No external channel messages  Back to Top

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. However, it is used when you want to be able to have people send text to your channel (like for updates or reports), or if you just want to have some fun, especially with actions (most clients use /me or /describe to perform an action).


o - Channel Operator  Back to Top

This is how someone is manually opped (without using ChanServ 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 (those that are not MLocked down by the founder through ChanServ) and kick people from the channel. Be careful who you make an op in your channel, because even if you are the founder, they can still kick and ban you!


O - IRC Operators only  Back to Top

This modes restricts entry into a channel to IRC Operators only.


p - Private  Back to Top

Originally, the private mode hides the channel topic from a /list but listed the channel. It also hides the channel from a /whois request. Now, this mode is exactly the same as +s (Secret)


r - Registered channel with ChanServ  Back to Top

This mode cannot be set by an operator - it can only be set by ChanServ. It only means that the channel is registered with ChanServ.


R - Registered nicks only  Back to Top

This mode is restricts entry to a channel to only nicks that have identified for their nick to NickServ. Those nicks will be set nick mode +r.


s - Secret  Back to Top

This mode keeps the name and nature of a channel secret from those who do not know its name. It does this by preventing it from showing up on a /WHO #channel or a /NAMES #channel (unless you are on that channel at the time), and also keeps the channel out of the /WHOIS reply's second line which shows which channels you are in. Finally, it will not show up in a /LIST of the channels currently open. This mode is handy if you want a little privacy but don't want to necessarily block anyone else from entering the channel.


t - Only ops can change the Topic  Back to Top

This mode restricts changing the topic to only the channel operators. (ChanServ can still over-ride this if TopicLock is set to SOP or Founder.) Mainly, this is used to keep the topic in line. In normal chat channels, this is done to keep the channel's topic in line with the aim of the channel, which the AOPs and SOPs can be said to represent by their presence on the access lists for the channel.


v - Voice in the channel  Back to Top

This command allows a normal user in the channel to send text into a moderated (+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.