Games: Add halfop support in @roulette.

This commit is contained in:
Valentin Lorentz 2012-07-13 14:08:55 +00:00
parent c37d8c9310
commit ac3724d326

View File

@ -131,7 +131,8 @@ class Games(callbacks.Plugin):
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?!'),