From ac3724d32602146cc1026d412efbdadd8e44af9b Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 13 Jul 2012 14:08:55 +0000 Subject: [PATCH] Games: Add halfop support in @roulette. --- plugins/Games/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Games/plugin.py b/plugins/Games/plugin.py index 931c79d2d..15e6d4fee 100644 --- a/plugins/Games/plugin.py +++ b/plugins/Games/plugin.py @@ -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?!'),