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:
parent
ae6c68018b
commit
40fa4f71bc
@ -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()
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user