.. _plugin-Topic: Topic ===== Purpose ------- Provides commands for manipulating channel topics. Usage ----- This plugin allows you to use many topic-related functions, such as Add, Undo, and Remove. .. _commands-Topic: Commands -------- .. _command-topic-add: add [] Adds to the topics for . is only necessary if the message isn't sent in the channel itself. .. _command-topic-change: change [] Changes the topic number on according to the regular expression . is the one-based index into the topics; is a regular expression of the form s/regexp/replacement/flags. is only necessary if the message isn't sent in the channel itself. .. _command-topic-default: default [] Sets the topic in to the default topic for . The default topic for a channel may be configured via the configuration variable supybot.plugins.Topic.default. .. _command-topic-fit: fit [] Adds to the topics for . If the topic is too long for the server, topics will be popped until there is enough room. is only necessary if the message isn't sent in the channel itself. .. _command-topic-get: get [] Returns topic number from . is a one-based index into the topics. is only necessary if the message isn't sent in the channel itself. .. _command-topic-insert: insert [] Adds to the topics for at the beginning of the topics currently on . is only necessary if the message isn't sent in the channel itself. .. _command-topic-list: list [] Returns a list of the topics in , prefixed by their indexes. Mostly useful for topic reordering. is only necessary if the message isn't sent in the channel itself. .. _command-topic-lock: lock [] Locks the topic (sets the mode +t) in . is only necessary if the message isn't sent in the channel itself. .. _command-topic-redo: redo [] Undoes the last undo. is only necessary if the message isn't sent in the channel itself. .. _command-topic-refresh: refresh [] Refreshes current topic set by anyone. Restores topic if empty. is only necessary if the message isn't sent in the channel itself. .. _command-topic-remove: remove [] [ ...] Removes topics from the topic for Topics are numbered starting from 1; you can also use negative indexes to refer to topics starting the from the end of the topic. is only necessary if the message isn't sent in the channel itself. .. _command-topic-reorder: reorder [] [ ...] Reorders the topics from in the order of the specified arguments. is a one-based index into the topics. is only necessary if the message isn't sent in the channel itself. .. _command-topic-replace: replace [] Replaces topic with . .. _command-topic-restore: restore [] Restores the topic to the last topic set by the bot. is only necessary if the message isn't sent in the channel itself. .. _command-topic-save: save [] Saves the topic in to be restored with 'topic default' later. is only necessary if the message isn't sent in the channel itself. .. _command-topic-separator: separator [] Sets the topic separator for to Converts the current topic appropriately. .. _command-topic-set: set [] [] Sets the topic to be . If no is given, this sets the entire topic. is only necessary if the message isn't sent in the channel itself. .. _command-topic-shuffle: shuffle [] Shuffles the topics in . is only necessary if the message isn't sent in the channel itself. .. _command-topic-swap: swap [] Swaps the order of the first topic number and the second topic number. is only necessary if the message isn't sent in the channel itself. .. _command-topic-topic: topic [] Returns the topic for . is only necessary if the message isn't sent in the channel itself. .. _command-topic-undo: undo [] Restores the topic to the one previous to the last topic command that set it. is only necessary if the message isn't sent in the channel itself. .. _command-topic-unlock: unlock [] Unlocks the topic (sets the mode -t) in . is only necessary if the message isn't sent in the channel itself. .. _conf-Topic: Configuration ------------- .. _conf-supybot.plugins.Topic.allowSeparatorinTopics: supybot.plugins.Topic.allowSeparatorinTopics This config variable defaults to "True", is network-specific, and is channel-specific. Determines whether the bot will allow topics containing the defined separator to be used. You may want to disable this if you are signing all topics by nick (see the 'format' option for ways to adjust this). .. _conf-supybot.plugins.Topic.alwaysSetOnJoin: supybot.plugins.Topic.alwaysSetOnJoin This config variable defaults to "False", is network-specific, and is channel-specific. Determines whether the bot will set the topic every time it joins, or only if the topic is empty. Requires 'config plugins.topic.setOnJoin' to be set to True. .. _conf-supybot.plugins.Topic.default: supybot.plugins.Topic.default This config variable defaults to "", is network-specific, and is channel-specific. Determines what the default topic for the channel is. This is used by the default command to set this topic. .. _conf-supybot.plugins.Topic.format: supybot.plugins.Topic.format This config variable defaults to "$topic", is network-specific, and is channel-specific. Determines what format is used to add topics in the topic. All the standard substitutes apply, in addition to "$topic" for the topic itself. .. _conf-supybot.plugins.Topic.public: supybot.plugins.Topic.public This config variable defaults to "True", is not network-specific, and is not channel-specific. Determines whether this plugin is publicly visible. .. _conf-supybot.plugins.Topic.recognizeTopiclen: supybot.plugins.Topic.recognizeTopiclen This config variable defaults to "True", is network-specific, and is channel-specific. Determines whether the bot will recognize the TOPICLEN value sent to it by the server and thus refuse to send TOPICs longer than the TOPICLEN. These topics are likely to be truncated by the server anyway, so this defaults to True. .. _conf-supybot.plugins.Topic.requireManageCapability: supybot.plugins.Topic.requireManageCapability This config variable defaults to "channel,op; channel,halfop", is network-specific, and is channel-specific. Determines the capabilities required (if any) to make any topic changes, (everything except for read-only operations). Use 'channel,capab' for channel-level capabilities. Note that absence of an explicit anticapability means user has capability. .. _conf-supybot.plugins.Topic.separator: supybot.plugins.Topic.separator This config variable defaults to " | ", is network-specific, and is channel-specific. Determines what separator is used between individually added topics in the channel topic. .. _conf-supybot.plugins.Topic.setOnJoin: supybot.plugins.Topic.setOnJoin This config variable defaults to "True", is network-specific, and is channel-specific. Determines whether the bot will automatically set the topic on join if it is empty. .. _conf-supybot.plugins.Topic.undo: supybot.plugins.Topic.undo This is a group of: .. _conf-supybot.plugins.Topic.undo.max: supybot.plugins.Topic.undo.max This config variable defaults to "10", is network-specific, and is channel-specific. Determines the number of previous topics to keep around in case the undo command is called.