From 5a8b2c282583eb758bea1c96471670a82597a4e9 Mon Sep 17 00:00:00 2001 From: Fletcher Boyd Date: Thu, 5 Sep 2013 07:45:34 +0800 Subject: [PATCH] Corrected typo in unmute, added lock/unlock. --- plugins/op.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/plugins/op.py b/plugins/op.py index 251e4be..7380e68 100755 --- a/plugins/op.py +++ b/plugins/op.py @@ -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) \ No newline at end of file