IRC Documentation · Beginner
TOPIC command: read or modify a channel's topic
TOPIC reads or modifies a channel's topic. The topic helps visitors understand its theme or instructions; it is neither a private message nor a setting for the entire web page.
Dialova Team · Verified on
Syntax and Parameters #
TOPIC <salon> [:<nouveau-sujet>]| Parameter | Meaning |
|---|---|
| channel | Channel concerned. |
| new-topic | Absent for reading; last parameter empty to clear; text provided to replace. |
Commented Example #
C: TOPIC #atelier
S: :irc.example 332 Alice #atelier :On parle création
C: TOPIC #atelier :Bienvenue, présentez vos projets
S: :Alice!alice@cloak.example TOPIC #atelier :Bienvenue, présentez vos projetsNicknames, hosts, and text in this exchange are fictional. The client may display responses in a more readable format than the presented frames.
Possible Responses and Errors #
| Response | Understanding |
|---|---|
| 332 / 331 | Current topic or absence of topic. |
| 333 | Author/date sometimes provided additionally depending on the server. |
| TOPIC | New topic broadcast to clients. |
| Error | Typical Cause |
|---|---|
| 403 | Channel does not exist. |
| 442 | You are not a member. |
| 482 | Modification requires a rank you do not have. |
Rights, Compatibility, and Precautions #
With a protected topic mode, only authorized members can change the text. The size limit may be announced by TOPICLEN in ISUPPORT.
Do not put secrets in the topic: it may be visible in lists, logs, or other clients. A link displayed in the topic remains a URL to verify before opening.
Frequently Asked Questions #
How to remove the topic? On the protocol, send TOPIC #atelier: with a last parameter empty; interfaces may offer a dedicated field.
Is the topic date universally displayed? No. Additional response or enriched display depends on the server and client.
Sources & Verification
Examples use pseudonyms and fictional domains, except for explicitly documented connection points. Network-specific extensions and settings are noted in the text.
- Modern IRC — spécification du protocole client ↗Source Specification · consulted on 2026-10-29
- RFC 2812 — Client Protocol (2000) ↗Source Historical · consulted on 2026-10-29