From WikiChip
Difference between revisions of "mirc/commands/topic"
< mirc‎ | commands

(Created page with "{{mirc title|/topic Command}} The '''/topic command''' enables changing, displaying, or removing the #channel topic, subject to having permissions allowed by the network. ==...")
 
m (Synopsis: Correct typo.)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
  
 
== Synopsis ==
 
== Synopsis ==
  /topic [-r] <#channelname> '[topic_string]
+
  /topic [-r] <#channelname> [topic_string]
 
  /topic  -r  <#channelname>
 
  /topic  -r  <#channelname>
 +
 
== Switches ==
 
== Switches ==
 
* '''-r''' - remove the topic instead
 
* '''-r''' - remove the topic instead
Line 28: Line 29:
 
== See also ==
 
== See also ==
 
* {{mIRC|$chan}}
 
* {{mIRC|$chan}}
* {{mIRC|on_topic|ON TOPIC}}
+
* {{mIRC|on topic|ON TOPIC}}

Latest revision as of 00:52, 23 January 2024

The /topic command enables changing, displaying, or removing the #channel topic, subject to having permissions allowed by the network.

Synopsis[edit]

/topic [-r] <#channelname> [topic_string]
/topic  -r  <#channelname>

Switches[edit]

  • -r - remove the topic instead

Parameters[edit]

  • topic string - new content for #channel topic

Example[edit]

; set topic
//topic $active new topic
; remove topic
//topic -r $active
; show current topic
//topic $active

Notes:

  • Network permissions can deny this command, such as needing to be @op when channel mode +t is set, or not being in channel
  • $chan(#channelname).topic continues to report the old string until server sends the RAW event indicating the new topic
  • Prior to v7.68 topic could only be deleted like: //topic $active $chr(58)

Compatibility[edit]

Added: 3.9

See also[edit]