Skip to content

Commit

Permalink
Games: Add halfop support in @Roulette.
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Jul 13, 2012
1 parent c37d8c9 commit ac3724d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Games/plugin.py
Expand Up @@ -131,7 +131,8 @@ def roulette(self, irc, msg, args, spin):
if self._rouletteChamber == self._rouletteBullet:
self._rouletteBullet = random.randrange(0, 6)
self._rouletteChamber = random.randrange(0, 6)
if irc.nick in irc.state.channels[channel].ops:
if irc.nick in irc.state.channels[channel].ops or \
irc.nick in irc.state.channels[channel].halfops:
irc.queueMsg(ircmsgs.kick(channel, msg.nick, 'BANG!'))
else:
irc.reply(_('*BANG* Hey, who put a blank in here?!'),
Expand Down

0 comments on commit ac3724d

Please sign in to comment.