2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
.. _plugin-topic:
|
|
|
|
|
|
|
|
The Topic plugin
|
|
|
|
================
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-restore:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
restore [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Restores the topic to the last topic set by the bot. *<channel>* is only
|
|
|
|
necessary if the message isn't sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-set:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
set [<channel>] [<number>] <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-shuffle:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
shuffle [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Shuffles the topics in *<channel>*. *<channel>* is only necessary if the
|
|
|
|
message isn't sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-lock:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
lock [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-replace:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
replace [<channel>] <number> <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Replaces topic *<number>* with *<topic>*.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-topic:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
topic [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Returns the topic for *<channel>*. *<channel>* is only necessary if the
|
|
|
|
message isn't sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-unlock:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
unlock [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-redo:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
redo [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Undoes the last undo. *<channel>* is only necessary if the message isn't
|
|
|
|
sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-fit:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
fit [<channel>] <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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 08:13:53 +02:00
|
|
|
.. _command-swap:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
swap [<channel>] <first topic number> <second topic number>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-reorder:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
reorder [<channel>] <number> [<number> ...]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-get:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
get [<channel>] <number>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Returns topic number *<number>* from *<channel>*. *<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:13:53 +02:00
|
|
|
.. _command-undo:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
undo [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-add:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
add [<channel>] <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-change:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
change [<channel>] <number> <regexp>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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
|
|
|
|
isn't sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-insert:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
insert [<channel>] <topic>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-default:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
default [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Sets the topic in *<channel>* to the default topic for *<channel>*. The
|
|
|
|
default topic for a channel may be configured via the configuration
|
|
|
|
variable supybot.plugins.Topic.default.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-die:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
die
|
|
|
|
^^^^
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-list:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
list [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Returns a list of the topics in *<channel>*, prefixed by their indexes.
|
|
|
|
Mostly useful for topic reordering. *<channel>* is only necessary if the
|
|
|
|
message isn't sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-remove:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
remove [<channel>] <number>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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:13:53 +02:00
|
|
|
.. _command-separator:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
separator [<channel>] <separator>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Sets the topic separator for *<channel>* to *<separator>* Converts the
|
|
|
|
current topic appropriately.
|
|
|
|
|
|
|
|
|