mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +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):
|
def disable(self, irc, msg, args):
|
||||||
"""[<plugin>] <command>
|
"""[<plugin>] <command>
|
||||||
|
|
||||||
Disables the command <command> for all non-owner users. If <plugin>
|
Disables the command <command> for all users (including the owners).
|
||||||
is given, only disables the <command> from <plugin>.
|
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)
|
(plugin, command) = privmsgs.getArgs(args, optional=1)
|
||||||
if not command:
|
if not command:
|
||||||
@ -683,8 +686,9 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
def enable(self, irc, msg, args):
|
def enable(self, irc, msg, args):
|
||||||
"""[<plugin>] <command>
|
"""[<plugin>] <command>
|
||||||
|
|
||||||
Enables the command <command> for all non-owner users. If <plugin>
|
Enables the command <command> for all users. If <plugin>
|
||||||
if given, only enables the <command> from <plugin>.
|
if given, only enables the <command> from <plugin>. This command is
|
||||||
|
the inverse of disable.
|
||||||
"""
|
"""
|
||||||
(plugin, command) = privmsgs.getArgs(args, optional=1)
|
(plugin, command) = privmsgs.getArgs(args, optional=1)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user