2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
.. _plugin-topic:
|
|
|
|
|
|
|
|
The Topic plugin
|
|
|
|
================
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Getting
|
|
|
|
-------
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-topic:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic topic [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Returns the topic for *<channel>*. *<channel>* is only necessary if the
|
|
|
|
message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-get:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic get [<channel>] <number>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Returns topic number *<number>* from *<channel>*. *<number>* is a one-based
|
|
|
|
index into the topics. *<channel>* is only necessary if the message
|
2011-06-28 08:11:32 +02:00
|
|
|
isn't sent in the channel itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-list:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic list [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Returns a list of the topics in *<channel>*, prefixed by their indexes.
|
|
|
|
Mostly useful for topic reordering. *<channel>* is only necessary if the
|
2011-06-28 08:11:32 +02:00
|
|
|
message isn't sent in the channel itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Defining
|
|
|
|
--------
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-restore:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic restore [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Restores the topic to the last topic set by the bot. *<channel>* is only
|
2011-06-28 08:11:32 +02:00
|
|
|
necessary if the message isn't sent in the channel itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-set:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic set [<channel>] [<number>] <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Sets the topic *<number>* to be *<text>*. If no *<number>* is given, this
|
|
|
|
sets the entire topic. *<channel>* is only necessary if the message
|
|
|
|
isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-replace:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic replace [<channel>] <number> <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Replaces topic *<number>* with *<topic>*.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-fit:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic fit [<channel>] <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Adds *<topic>* to the topics for *<channel>*. If the topic is too long
|
|
|
|
for the server, topics will be popped until there is enough room.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-add:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic add [<channel>] <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Adds *<topic>* to the topics for *<channel>*. *<channel>* is only necessary
|
|
|
|
if the message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-remove:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic remove [<channel>] <number>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Removes topic *<number>* from the topic for *<channel>* Topics are
|
|
|
|
numbered starting from 1; you can also use negative indexes to refer
|
|
|
|
to topics starting the from the end of the topic. *<channel>* is only
|
|
|
|
necessary if the message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-change:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic change [<channel>] <number> <regexp>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Changes the topic number *<number>* on *<channel>* according to the regular
|
|
|
|
expression *<regexp>*. *<number>* is the one-based index into the topics;
|
|
|
|
*<regexp>* is a regular expression of the form
|
|
|
|
s/regexp/replacement/flags. *<channel>* is only necessary if the message
|
2011-06-28 08:11:32 +02:00
|
|
|
isn't sent in the channel itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-insert:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic insert [<channel>] <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Adds *<topic>* to the topics for *<channel>* at the beginning of the topics
|
|
|
|
currently on *<channel>*. *<channel>* is only necessary if the message
|
|
|
|
isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-default:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic default [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Sets the topic in *<channel>* to the default topic for *<channel>*. The
|
|
|
|
default topic for a channel may be configured via the configuration
|
|
|
|
variable :ref:`supybot.plugins.Topic.default.`
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Re-ordering
|
|
|
|
-----------
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-shuffle:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic shuffle [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Shuffles the topics in *<channel>*. *<channel>* is only necessary if the
|
|
|
|
message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-reorder:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic reorder [<channel>] <number> [<number> ...]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Reorders the topics from *<channel>* in the order of the specified
|
|
|
|
*<number>* arguments. *<number>* is a one-based index into the topics.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-swap:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic swap [<channel>] <first topic number> <second topic number>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Swaps the order of the first topic number and the second topic number.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Locking
|
|
|
|
-------
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-lock:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic lock [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Locks the topic (sets the mode +t) in *<channel>*. *<channel>* is only
|
|
|
|
necessary if the message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-unlock:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic unlock [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Unlocks the topic (sets the mode +t) in *<channel>*. *<channel>* is only
|
|
|
|
necessary if the message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Utilities
|
|
|
|
---------
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-undo:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic undo [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Restores the topic to the one previous to the last topic command that
|
|
|
|
set it. *<channel>* is only necessary if the message isn't sent in the
|
|
|
|
channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-redo:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic redo [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Undoes the last undo. *<channel>* is only necessary if the message isn't
|
|
|
|
sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-topic-separator:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
topic separator [<channel>] <separator>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Sets the topic separator for *<channel>* to *<separator>* Converts the
|
|
|
|
current topic appropriately.
|