X / ACCOUNTS & CHANNELS
BAN
Set a persistent channel ban.
Syntax
X service Private message/msg X BAN #channel <mask|nick> [duration] [reason]Required access
- Signed in to X
- Operator access (+o) or higher
How it works
Target: Use a nickname or nick!ident@host mask; X stores the ban and removes matching users.
Duration: Optional; use units such as 30m or 1h30m. Without a duration the ban remains until removed.
Exceptions: Matching ban exceptions are respected.
Removal: UNBAN (BANDEL) removes one ban; BANCLEAR removes X-owned bans.
Parameters
- #channel
- The channel to manage; replace #channel with its actual name.
- mask|nick
- Choose one of: mask, nick.
Example commands
/msg X BAN #channel *!*@spam.example 1h Repeated disruptionIf it is refused
- Authentication and channel permission checks apply; suspended channels cannot be managed.
Reviewed 27 September 2026. Current service settings and access checks apply. For the service’s current help, use /msg X HELP BAN.