Skip to content

Commit 77b65ef

Browse files
committed
Add more permissions to duckhunt commands
1 parent d13013f commit 77b65ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/duckhunt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def incrementMsgCounter(event, conn):
121121
game_status[conn.name][event.chan]['masks'].append(event.host)
122122

123123

124-
@hook.command("starthunt", autohelp=False, permissions=["chanop"])
124+
@hook.command("starthunt", autohelp=False, permissions=["chanop", "op", "botcontrol"])
125125
def start_hunt(bot, chan, message, conn):
126126
"""This command starts a duckhunt in your channel, to stop the hunt use .stophunt"""
127127
global game_status
@@ -151,7 +151,7 @@ def set_ducktime(chan, conn):
151151
return
152152

153153

154-
@hook.command("stophunt", autohelp=False, permissions=["chanop"])
154+
@hook.command("stophunt", autohelp=False, permissions=["chanop", "op", "botcontrol"])
155155
def stop_hunt(chan, conn):
156156
"""This command stops the duck hunt in your channel. Scores will be preserved"""
157157
global game_status
@@ -164,7 +164,7 @@ def stop_hunt(chan, conn):
164164
return "There is no game running in {}.".format(chan)
165165

166166

167-
@hook.command("duckkick", permissions=["chanop"])
167+
@hook.command("duckkick", permissions=["chanop", "op", "botcontrol"])
168168
def no_duck_kick(text, chan, conn, notice):
169169
"""If the bot has OP or half-op in the channel you can specify .duckkick enable|disable so that people are kicked for shooting or befriending a non-existent goose. Default is off."""
170170
global game_status

0 commit comments

Comments
 (0)