mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fixed help for enable/disable.
This commit is contained in:
parent
db23f4e4b5
commit
2c5276bc98
12
src/Owner.py
12
src/Owner.py
@ -665,8 +665,11 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
def disable(self, irc, msg, args):
|
||||
"""[<plugin>] <command>
|
||||
|
||||
Disables the command <command> for all non-owner users. If <plugin>
|
||||
is given, only disables the <command> from <plugin>.
|
||||
Disables the command <command> for all users (including the owners).
|
||||
If <plugin> is given, only disables the <command> from <plugin>. If
|
||||
you want to disable a command for most users but not for yourself, set
|
||||
a default capability of -plugin.command or -command (if you want to
|
||||
disable the command in all plugins).
|
||||
"""
|
||||
(plugin, command) = privmsgs.getArgs(args, optional=1)
|
||||
if not command:
|
||||
@ -683,8 +686,9 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
def enable(self, irc, msg, args):
|
||||
"""[<plugin>] <command>
|
||||
|
||||
Enables the command <command> for all non-owner users. If <plugin>
|
||||
if given, only enables the <command> from <plugin>.
|
||||
Enables the command <command> for all users. If <plugin>
|
||||
if given, only enables the <command> from <plugin>. This command is
|
||||
the inverse of disable.
|
||||
"""
|
||||
(plugin, command) = privmsgs.getArgs(args, optional=1)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user