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