ChanServ – Access management (FLAGS)
How to manage user permissions in IRC channels with ChanServ's FLAGS system on Anope.
The FLAGS system
ChanServ uses a system of flags to give users fine-grained permissions in channels. Each flag corresponds to a specific power.
/msg ChanServ FLAGS #canale <nick> +[flags] ← aggiunge flags
/msg ChanServ FLAGS #canale <nick> -[flags] ← rimuove flags
/msg ChanServ FLAGS #canale <nick> =[flags] ← imposta esattamente queste flags
/msg ChanServ FLAGS #canale ← lista accessi
List of flags
| Flag | Name | Description |
|---|---|---|
+q | Owner | Channel owner (~). Highest access. |
+a | Admin | Channel admin (&). Can't be kicked by @. |
+o | Op | Operator (@). Can kick, ban and change the topic. |
+h | HalfOp | Half-operator (%). Limited powers. |
+v | Voice | Voice (+). Can speak when +m is set. |
+A | AutoOp | Automatically gets op on joining. |
+V | AutoVoice | Automatically gets voice on joining. |
+i | Invite / AutoInvite | Can invite themselves or use invite in channels set to +i. |
+f | Founder | Founder access: all powers. |
+s | Set | Can use the SET command on the channel. |
+b | Ban | Can ban users. |
+k | Kick | Can kick users. |
+c | Clear | Can use CLEAR to remove bans, modes or privileges from the channel. |
+t | Topic | Can change the topic. |
+F | Flags | Can change other users' access, within the limits allowed by their own level. |
+* | All | Assigns all available flags. |
Practical examples
Give automatic op to a trusted user
/msg ChanServ FLAGS #miocanale Mario +oA
Give automatic voice to a user
/msg ChanServ FLAGS #miocanale Lucia +vV
Remove all permissions from a user
/msg ChanServ FLAGS #miocanale BadUser -*
See the channel's full access list
/msg ChanServ FLAGS #miocanale
ACCESS LIST (AOP / SOP / HOP / VOP)
Besides the FLAGS system, some ChanServ configurations also allow the traditional access lists, based on predefined levels such as AOP, SOP, HOP and VOP.
This system is simpler but also less fine-grained than FLAGS. Where available, it's generally used to quickly assign the most common roles within the channel.
Most common commands
/msg ChanServ QOP #canale ADD nick
/msg ChanServ QOP #canale DEL nick
/msg ChanServ QOP #canale LIST
/msg ChanServ SOP #canale ADD nick
/msg ChanServ SOP #canale DEL nick
/msg ChanServ SOP #canale LIST
/msg ChanServ AOP #canale ADD nick
/msg ChanServ AOP #canale DEL nick
/msg ChanServ AOP #canale LIST
/msg ChanServ HOP #canale ADD nick
/msg ChanServ HOP #canale DEL nick
/msg ChanServ HOP #canale LIST
/msg ChanServ VOP #canale ADD nick
/msg ChanServ VOP #canale DEL nick
/msg ChanServ VOP #canale LIST
| List | Assigned role | Typical use |
|---|---|---|
QOP | Co-Owner (~) | The most trusted users in managing the channel; they can do everything except unregister the channel. |
SOP | SuperOp (&) | The most trusted users in managing the channel. |
AOP | AutoOp (@) | Users who should automatically get operator status. |
HOP | HalfOp (%) | Users with intermediate powers, if the network supports halfop status. |
VOP | Voice (+) | Users who should automatically get voice on joining. |
Note: the FLAGS system is generally more flexible and recommended, because it lets you assign precise, combinable permissions. Traditional access lists can be useful for quicker, simpler management.
AKICK – Auto-ban list
AKICK automatically bans users or masks every time they join the channel, even when no operators are active.
/msg ChanServ AKICK #canale ADD *!*@host-spam.example :Spam ripetuto
/msg ChanServ AKICK #canale ADD BadNick :Comportamento scorretto
/msg ChanServ AKICK #canale LIST
/msg ChanServ AKICK #canale DEL *!*@host-spam.example
/msg ChanServ AKICK #canale VIEW ← dettagli con data e chi ha aggiunto