mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-25 19:54:25 +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
|
return
|
||||||
else:
|
else:
|
||||||
irc.reply("Done.")
|
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).
|
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
|
## PyLink Core
|
||||||
|
- `core.clearqueue` - Allows access to the `clearqueue` command.
|
||||||
- `core.shutdown` - Allows access to the `shutdown` command.
|
- `core.shutdown` - Allows access to the `shutdown` command.
|
||||||
- `core.load` - Allows access to the `load` command.
|
- `core.load` - Allows access to the `load` command.
|
||||||
- `core.unload` - Allows access to the `unload` command.
|
- `core.unload` - Allows access to the `unload` command.
|
||||||
|
Loading…
Reference in New Issue
Block a user