From a1783ed2be1cd738be99429bb9c5778eda12fe48 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 11 Jul 2018 22:15:36 -0700 Subject: [PATCH] bots: "bots.joinclient" should be "bots.join" (matching the command name) --- docs/permissions-reference.md | 2 +- plugins/bots.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/permissions-reference.md b/docs/permissions-reference.md index 2099270..6d3afbf 100644 --- a/docs/permissions-reference.md +++ b/docs/permissions-reference.md @@ -36,7 +36,7 @@ Remote versions of the `manage`, `list`, `sync`, and `clear` commands also exist ## 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.nick` - Grants access to the `nick` command. - `bots.part` - Grants access to the `part` command. diff --git a/plugins/bots.py b/plugins/bots.py index 020a7e5..b091e84 100644 --- a/plugins/bots.py +++ b/plugins/bots.py @@ -64,7 +64,7 @@ def joinclient(irc, source, args): 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. """ - permissions.check_permissions(irc, source, ['bots.joinclient']) + permissions.check_permissions(irc, source, ['bots.join', 'bots.joinclient']) try: # Check if the first argument is an existing PyLink client. If it is not,