diff --git a/plugins/op.py b/plugins/op.py index 159b32c..b037e3e 100755 --- a/plugins/op.py +++ b/plugins/op.py @@ -2,7 +2,7 @@ from util import hook -@hook.command(adminonly=True) +@hook.command(permissions=["botcontrol"]) def topic(inp, conn=None, chan=None, notice=None): "topic [channel] -- Change the topic of a channel." inp = inp.split(" ") @@ -21,7 +21,7 @@ def topic(inp, conn=None, chan=None, notice=None): conn.send(out) -@hook.command(adminonly=True) +@hook.command(permissions=["botcontrol"]) def kick(inp, chan=None, conn=None, notice=None): "kick [channel] [reason] -- Makes the bot kick in [channel] "\ "If [channel] is blank the bot will kick the in "\ @@ -51,7 +51,7 @@ def kick(inp, chan=None, conn=None, notice=None): conn.send(out) -@hook.command(adminonly=True) +@hook.command(permissions=["botcontrol"]) def ban(inp, conn=None, chan=None, notice=None): "ban [channel] -- Makes the bot ban in [channel]. "\ "If [channel] is blank the bot will ban in "\ @@ -68,7 +68,7 @@ def ban(inp, conn=None, chan=None, notice=None): conn.send(out) -@hook.command(adminonly=True) +@hook.command(permissions=["botcontrol"]) def unban(inp, conn=None, chan=None, notice=None): "unban [channel] -- Makes the bot unban in [channel]. "\ "If [channel] is blank the bot will unban in "\ @@ -85,7 +85,7 @@ def unban(inp, conn=None, chan=None, notice=None): conn.send(out) -@hook.command(adminonly=True) +@hook.command(permissions=["botcontrol"]) def kickban(inp, chan=None, conn=None, notice=None): "kickban [channel] [reason] -- Makes the bot kickban in [channel] "\ "If [channel] is blank the bot will kickban the in "\