Chanserv is one of the primary Services aliases, and is in control of channels.
Most IRC action occurs in channels – think of them like rooms in a house, and the house as the network it is hosted by. Each room has hosts, called operators (Ops) who run the channel in accordance with its rules.
Chanserv is the service that manages all of the functions of all of the rooms, collectively, across the network.
Quick Reference Channel Admin Guide
Registering a Channel
/msg chanserv register #channel password description.
You must have a registered nickname and channel operator status in a channel in order to register a channel. The password can be used with the IDENTIFY command to modify channel settings later.
|has full power over channel, can make others ops, super-ops, half-ops, ban, kick, etc.. – also known as “The Feather of Power”
|can make and take operator and half-op status, can ban/kick users and modify badword list, can not make others super-ops.
|can make and take operator and half-op status as well as ban/kick users.
|can ban/kick users but can not issue ops or half-ops.
Auto-Oping using ChanServ
Add a user to auto-op list: /msg chanserv aop #channel add nick
Add a user to super-op list: /msg chanserv sop #channel add nick
Add a user to half-op list: /msg chanserv hop #channel add nick
You may choose not to use AOP/SOP/VOP commands in order to give channel privileges. You can use ACCESS levels instead and may customize access levels. See /msg chanserv help set xop for help on this. You may also see /msg chanserv help aop; /msg chanserv help hop; etc..
Customizing your Channel by Setting Modes
You can customize your channel by setting channel modes. The command is /mode [+/-]themode. So for example to stop ANSI color commands from being sent to the channel you can set the mode +c as follows: /mode +c. To remove it: /mode -c while in the channel. You can use ChanServ to automatically set channel modes when it goes from being unpopulated to populated by setting the mode lock: /msg chanserv set mlock themodes.
|Makes the user a channel admin
|Bans the given user from the channel
|No ANSI color can be sent to the channel. See also channel mode (S)
|No CTCP’s allowed in the channel
|Exception ban If someone matches this, they can join a channel even if they match an existing ban
|Channel flood protection. See section 3.12 above for an extended description.
|Makes channel G rated. Checks for words listed in the Badword Blocks, and replaces them with the words specified
|Gives half-op status to the user
|Invite exceptions (“invex”) – if someone matches this, they can bypass +i requirements to enter the channel.
|Throttles joins per-user to joins per seconds seconds
|/knock is not allowed
|Sets a key needed to join
|Sets max number of users
|If the amount set by +l has been reached, users will be sent to this channel
|A registered nickname (+r) is required to talk
|Moderated channel. Only +v/o/h users may speak
|No nick name changes permitted
|No messages from outside channels
|Gives a user channel operator status
|Makes channel private
|Sets channel owner
|Nobody can kick users in channel.
|Requires a registered nickname to join
|Strips all incoming colors
|Makes channel secret
|Only chanops can set topic
|No NOTICE’s allowed in the channel
|Auditorium Makes /names and /who #channel only show channel ops
|/invite is not allowed
|Gives a voice to users. (May speak in +m channels)
|Only clients on a Secure (SSL) Connection may join
What is a hostmask?
In layman’s terms, a hostmask is a unique identifier tied to a specific user. While a user may change his nickname, his hostmask will stay the same unless he changes ISPs or connects through a proxy.
How to determine a user’s hostmask
The hostmask of a user is displayed when he first enters a channel: razor [firstname.lastname@example.org] has joined #channels. It can also be determined by typing /whois nickname and will appear in your main connection window. A hostmask takes the format of user@host. In the above example email@example.com is the hostmask.
Banning a user
Many IRC clients make it easy to ban users. Often you can right mouse click the user you’d like to ban and click ban. With other text-based clients such as irssi you can type /ban user. While these mechanisms make it easy it’s also important to understand the manual syntax so that you can perform other types of bans, take advantage of advanced maneuvers or maintain detailed control over your ban.
Banning a user manually is simple and consists of setting a channel mode. The ban syntax looks like this: /mode +b nick!user@host. Notice the hostmask is prefixed by the nickname of the user delimited by an exclaimation point. If we wanted to ban the user razor in our hostmask example above we would type: /mode +b firstname.lastname@example.org. If you are thinking like a troll you probably already figured out that razor can simply change his nickname to evade the ban. In that case, making use of wildcards would provide a more extensive ban: /mode +b *!*@adsl-072-156-127-251.sip.jan.bellsouth.net would be a better method. Be careful, wildcards can be dangerous; you could end up banning everyone if done wrong. Do some practicing with a couple friends in a private channel to get your chops up.
Different types of bans
There are different types of bans that you may take advantage of. The most commonly used ban is demonstrated above and prevents a user from joining a channel and speaking once set. The following bans may be useful as well:
Extended bans look like ~<type>:<parameter>.
They let you ban (or exempt) based on things other than the traditional nick!user@host mask. They also provide support for things like ‘quieting’ users.
These bantypes specify which actions are affected by a ban:
|People matching these bans can join but are unable to speak, unless they have +v or higher. Ex: ~q:*!*@blah.blah.com
|People matching these bans cannot change nicks, unless they have +v or higher. Ex: ~n:*!*@*.aol.com
|If a user matches this, he may not join the channel.
He may perform all other activities if he is already on the channel, such as speaking and changing his nick.
Could be useful to prevent people from one ISP from joining, but still make them able to speak/nickchange freely once in the channel, like after an /INVITE.
These bantypes introduce new criteria which can be used:
|If the user is in this channel then (s)he is unable to join. A prefix can also be specified (+/%/@/&/~) which means that it will only match if the user has that rights or higher on the specified channel. Ex: +b ~c:#lamers, +e ~c:@#trusted
|If the realname of a user matches this then (s)he is unable to join.
NOTE: an underscore (‘_’) matches both a space (‘ ‘) and an underscore (‘_’), so this ban would match ‘Stupid bot script v1.4’.
|If a user has identified to services (usually NickServ) and matches this nickname, then this ban will match. This means this ban is really only useful for ban exemptions (+e).
Ex: +e ~R:Nick will allow Nick in the channel, regardless of other bans, if he identified to NickServ and is using the nickname Nick.
You may stack extended bans from the 1st group with the 2nd, such as +b ~q:~c:#lamers, which would quiet all users who have joined #lamers.
A note on CGI’s and Mibbits
Often users entering chat from a CGI client or mibbit will take on the hostmask of the CGI or Mibbit service. In this case it can be hard to ban them. Often CGI’s will place their real hostmask in the “Real Name” or ircname field when performing a /whois on them. The ~r type ban would work well for them.
Additional Chanserv Features
See our IRC Commands and Documentation page for references, and complete lists of all the commands supported by this network.