Limnoria-doc/use/plugins/network.rst

88 lines
2.4 KiB
ReStructuredText
Raw Normal View History

2011-06-28 08:11:32 +02:00
.. _plugin-network:
The Network plugin
==================
2011-06-28 17:29:38 +02:00
Getting status
--------------
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-network-driver:
network driver [<network>]
^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
Returns the current network driver for *<network>*. *<network>* is only
necessary if the message isn't sent on the network to which this
command is to apply.
2011-06-28 17:29:38 +02:00
.. _command-network-networks:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
network networks
^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
Returns the networks to which the bot is currently connected.
2011-06-28 17:29:38 +02:00
.. _command-network-latency:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
network latency [<network>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
Returns the current latency to *<network>*. *<network>* is only necessary
if the message isn't sent on the network to which this command is to
apply.
2011-06-28 17:29:38 +02:00
Running commands
----------------
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-network-whois:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
network whois [<network>] <nick>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
Returns the WHOIS response *<network>* gives for *<nick>*. *<network>* is
only necessary if the network is different than the network the command
is sent on.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-network-command:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
network command <network> <command> [<arg> ...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
Gives the bot *<command>* (with its associated *<arg>*s) on *<network>*.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
(Dis)connecting
---------------
.. _command-network-connect:
network connect [--ssl] <network> [<host[:port]>] [<password>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Connects to another network (which will be represented by the name
provided in *<network>*) at *<host:port>*. If port is not provided, it
defaults to 6667, the default port for IRC. If password is
provided, it will be sent to the server in a PASS command. If *--ssl* is
provided, an SSL connection will be attempted.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-network-reconnect:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
network reconnect [<network>] [<quit message>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
Disconnects and then reconnects to *<network>*. If no network is given,
disconnects and then reconnects to the network the command was given
on. If no quit message is given, uses the configured one
(:ref:`supybot.plugins.Owner.quitMsg`) or the nick of the person giving the
command.
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
.. _command-network-disconnect:
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
network disconnect [<network>] [<quit message>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2011-06-28 08:11:32 +02:00
2011-06-28 17:29:38 +02:00
Disconnects from the network represented by the network *<network>*.
If *<quit message>* is given, quits the network with the given quit
message. *<network>* is only necessary if the network is different
from the network the command is sent on.