Bans & Restrictions
Channel Bans
Section titled “Channel Bans”Channel operators can ban users by hostmask using the +b mode:
MODE #channel +b *!*@bad.host.comMODE #channel +b SpamBot!*@*MODE #channel +b *!badident@*See Channel List Modes for full ban documentation.
Ban Mask Normalization
Section titled “Ban Mask Normalization”When a ban is set, the mask is normalized:
- Incomplete masks are expanded to full
nick!ident@hostformat - For example,
*@bad.host.comis normalized to*!*@bad.host.com
Ban Limits
Section titled “Ban Limits”By default, each channel can have up to 100 ban entries (configurable via max_list_entries: %{"b" => 100}).
Ban Exceptions (+e)
Section titled “Ban Exceptions (+e)”Ban exceptions allow specific users to bypass bans:
MODE #channel +e TrustedUser!*@*If a user matches both a ban (+b) and an exception (+e), they can join (exception wins).
Access Restrictions by Mode
Section titled “Access Restrictions by Mode”| Mode | Restriction |
|---|---|
+i | Invite only — requires invite or +I exception |
+k | Key — requires correct channel password |
+l | Limit — channel at capacity |
+R | Registered only — must be identified (+r) |
+O | Oper only — must be an IRC operator |
+z | Secure only — must be on TLS (+Z) |
+j | Join throttle — rate limited |
User-Level Restrictions
Section titled “User-Level Restrictions”Caller ID (+g)
Section titled “Caller ID (+g)”Users can enable Caller ID to only receive messages from trusted users:
MODE yournick +gACCEPT +TrustedFriendSee User Modes — +g.
Registered Only (+R for users)
Section titled “Registered Only (+R for users)”Users can block messages from unregistered users:
MODE yournick +RSILENCE
Section titled “SILENCE”Users can silence specific hostmasks (messages are silently dropped):
SILENCE +*!*@spammer.example.comSee SILENCE command.
Kicking Users
Section titled “Kicking Users”Channel operators can remove users from channels:
KICK #channel BadUser :Violated channel rulesIRC Operator Actions
Section titled “IRC Operator Actions”IRC operators can:
- KILL — forcefully disconnect a user from the entire server:
KILL spambot :Automated spam
Server-Level Connection Limits
Section titled “Server-Level Connection Limits”Connection-level restrictions apply before users even complete registration:
max_connections_per_ip— max simultaneous connections from one IP- Connection rate throttle — token bucket per IP
- IP blocking after repeated violations
See Rate Limiting for configuration.