Corrected typo in unmute, added lock/unlock.

This commit is contained in:
Fletcher Boyd 2013-09-05 07:45:34 +08:00
parent b3c08a33da
commit 5a8b2c2825

View file

@ -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)