Corrected typo in unmute, added lock/unlock.
This commit is contained in:
parent
b3c08a33da
commit
5a8b2c2825
1 changed files with 17 additions and 1 deletions
|
@ -162,4 +162,20 @@ def unmute(inp, conn=None, chan=None, notice=None):
|
|||
"""mute [channel] -- Makes the bot mute a channel..
|
||||
If [channel] is blank the bot will mute
|
||||
the channel the command was used in."""
|
||||
mode_cmd_no_target("-m", "mute", inp, chan, conn, notice)
|
||||
mode_cmd_no_target("-m", "unmute", inp, chan, conn, notice)
|
||||
|
||||
|
||||
@hook.command(permissions=["op_mute", "op"], autohelp=False)
|
||||
def mute(inp, conn=None, chan=None, notice=None):
|
||||
"""mute [channel] -- Makes the bot mute a channel..
|
||||
If [channel] is blank the bot will mute
|
||||
the channel the command was used in."""
|
||||
mode_cmd_no_target("+i", "lock", inp, chan, conn, notice)
|
||||
|
||||
|
||||
@hook.command(permissions=["op_mute", "op"], autohelp=False)
|
||||
def unmute(inp, conn=None, chan=None, notice=None):
|
||||
"""mute [channel] -- Makes the bot mute a channel..
|
||||
If [channel] is blank the bot will mute
|
||||
the channel the command was used in."""
|
||||
mode_cmd_no_target("-i", "unlock", inp, chan, conn, notice)
|
Reference in a new issue