2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
.. _plugin-user:
|
|
|
|
|
|
|
|
The User plugin
|
|
|
|
===============
|
|
|
|
|
2011-10-29 11:54:29 +02:00
|
|
|
Registration and hostmasks
|
|
|
|
--------------------------
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-username:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user username <hostmask|nick>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Returns the username of the user specified by *<hostmask>* or *<nick>* if
|
|
|
|
the user is registered.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-set-password:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user set password [<name>] <old password> <new password>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Sets the new password for the user specified by *<name>* to *<new
|
|
|
|
password>*. Obviously this message must be sent to the bot
|
|
|
|
privately (not in a channel). If the requesting user is an owner
|
|
|
|
user (and the user whose password is being changed isn't that same
|
|
|
|
owner user), then *<old password>* needn't be correct.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-set-secure:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user set secure <password> [<True|False>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Sets the secure flag on the user of the person sending the message.
|
|
|
|
Requires that the person's hostmask be in the list of hostmasks for
|
|
|
|
that user in addition to the password being correct. When the
|
|
|
|
secure flag is set, the user *must* identify before he can be
|
|
|
|
recognized. If a specific True/False value is not given, it
|
|
|
|
inverts the current value.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-hostmask-hostmask:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user hostmask hostmask [<nick>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Returns the hostmask of *<nick>*. If *<nick>* isn't given, return the
|
|
|
|
hostmask of the person giving the command.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-hostmask-list:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user hostmask list [<name>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Returns the hostmasks of the user specified by *<name>*; if *<name>*
|
|
|
|
isn't specified, returns the hostmasks of the user calling the
|
|
|
|
command.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-hostmask-add:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user hostmask add [<name>] [<hostmask>] [<password>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Adds the hostmask *<hostmask>* to the user specified by *<name>*. The
|
|
|
|
*<password>* may only be required if the user is not recognized by
|
|
|
|
hostmask. *<password>* is also not required if an owner user is
|
|
|
|
giving the command on behalf of some other user. If *<hostmask>* is
|
|
|
|
not given, it defaults to your current hostmask. If *<name>* is not
|
|
|
|
given, it defaults to your currently identified name. This message
|
|
|
|
must be sent to the bot privately (not on a channel) since it may
|
|
|
|
contain a password.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-hostmask-remove:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user hostmask remove <name> <hostmask> [<password>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Removes the hostmask *<hostmask>* from the record of the user
|
|
|
|
specified by *<name>*. If the hostmask given is 'all' then all
|
|
|
|
hostmasks will be removed. The *<password>* may only be required if
|
|
|
|
the user is not recognized by his hostmask. This message must be
|
|
|
|
sent to the bot privately (not on a channel) since it may contain a
|
|
|
|
password.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-unregister:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user unregister <name> [<password>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Unregisters *<name>* from the user database. If the user giving this
|
|
|
|
command is an owner user, the password is not necessary.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-register:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user register <name> <password>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Registers *<name>* with the given password *<password>* and the current
|
|
|
|
hostmask of the person registering. You shouldn't register twice; if
|
|
|
|
you're not recognized as a user but you've already registered, use the
|
|
|
|
hostmask add command to add another hostmask to your already-registered
|
|
|
|
user, or use the identify command to identify just for a session.
|
|
|
|
This command (and all other commands that include a password) must be
|
|
|
|
sent to the bot privately, not in a channel.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-unidentify:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user unidentify
|
|
|
|
^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Un-identifies you. Note that this may not result in the desired
|
|
|
|
effect of causing the bot not to recognize you anymore, since you may
|
|
|
|
have added hostmasks to your user that can cause the bot to continue to
|
|
|
|
recognize you.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-identify:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user identify <name> <password>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Identifies the user as *<name>*. This command (and all other
|
|
|
|
commands that include a password) must be sent to the bot privately,
|
|
|
|
not in a channel.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-user-changename:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
user changename <name> <new name> [<password>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Changes your current user database name to the new name given.
|
|
|
|
*<password>* is only necessary if the user isn't recognized by hostmask.
|
|
|
|
This message must be sent to the bot privately (not on a channel) since
|
|
|
|
it may contain a password.
|
|
|
|
|
2011-10-29 11:54:29 +02:00
|
|
|
Capabilities
|
|
|
|
------------
|
|
|
|
|
|
|
|
.. _command-user-capabilities:
|
|
|
|
|
|
|
|
user capabilities [<name>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Returns the capabilities of the user specified by *<name>*; if *<name>*
|
|
|
|
isn't specified, returns the capabilities of the user calling the
|
|
|
|
command.
|
|
|
|
|
|
|
|
Other commands
|
|
|
|
|
|
|
|
.. _command-user-stats:
|
|
|
|
|
|
|
|
user stats
|
|
|
|
^^^^^^^^^^
|
|
|
|
|
|
|
|
Returns some statistics on the user database.
|
|
|
|
|
|
|
|
.. _command-user-list:
|
|
|
|
|
|
|
|
user list [--capability=<capability>] [<glob>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Returns the valid registered usernames matching *<glob>*. If *<glob>* is
|
|
|
|
not given, returns all registered usernames.
|
|
|
|
|
|
|
|
.. _command-user-whoami:
|
|
|
|
|
|
|
|
user whoami
|
|
|
|
^^^^^^^^^^^
|
|
|
|
|
|
|
|
Returns the name of the user calling the command.
|
2011-10-28 22:49:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
.. _plugin-user-config:
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. _supybot.plugins.User.public:
|
|
|
|
|
|
|
|
supybot.plugins.User.public
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Default value: True
|
|
|
|
|
|
|
|
Determines whether this plugin is publicly visible.
|
|
|
|
|