3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

bots: "bots.joinclient" should be "bots.join" (matching the command name)

This commit is contained in:
James Lu 2018-07-11 22:15:36 -07:00
parent b5884d4cb3
commit a1783ed2be
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ Remote versions of the `manage`, `list`, `sync`, and `clear` commands also exist
## Bots ## Bots
- `bots.joinclient` - Grants access to the `joinclient` command. - `bots.join` - Grants access to the `join` command. `bots.joinclient` is a deprecated alias for this, retained for compatibility with PyLink < 2.0-rc1.
- `bots.msg` - Grants access to the `msg` command. - `bots.msg` - Grants access to the `msg` command.
- `bots.nick` - Grants access to the `nick` command. - `bots.nick` - Grants access to the `nick` command.
- `bots.part` - Grants access to the `part` command. - `bots.part` - Grants access to the `part` command.

View File

@ -64,7 +64,7 @@ def joinclient(irc, source, args):
For the channel arguments, prefixes can also be specified to join the given client with For the channel arguments, prefixes can also be specified to join the given client with
(e.g. @#channel will join the client with op, while ~@#channel will join it with +qo. (e.g. @#channel will join the client with op, while ~@#channel will join it with +qo.
""" """
permissions.check_permissions(irc, source, ['bots.joinclient']) permissions.check_permissions(irc, source, ['bots.join', 'bots.joinclient'])
try: try:
# Check if the first argument is an existing PyLink client. If it is not, # Check if the first argument is an existing PyLink client. If it is not,