3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 12:42:34 +01:00

corecommands: add a 'clearqueue' command to force clear queue muckups (#441)

This commit is contained in:
James Lu 2017-03-28 22:39:11 -07:00
parent ae6c68018b
commit 40fa4f71bc
2 changed files with 9 additions and 0 deletions

View File

@ -201,3 +201,11 @@ def rehash(irc, source, args):
return
else:
irc.reply("Done.")
@utils.add_cmd
def clearqueue(irc, source, args):
"""takes no arguments.
Clears the outgoing text queue for the current connection."""
permissions.checkPermissions(irc, source, ['core.clearqueue'])
irc.queue.clear()

View File

@ -3,6 +3,7 @@
Below is a list of all the permissions defined by PyLink and its official plugins. For instructions on how to fine-tune permissions, see [example-permissions.yml](../example-permissions.yml).
## PyLink Core
- `core.clearqueue` - Allows access to the `clearqueue` command.
- `core.shutdown` - Allows access to the `shutdown` command.
- `core.load` - Allows access to the `load` command.
- `core.unload` - Allows access to the `unload` command.