Added vee2d2's roulette w/out ops idea.

This commit is contained in:
James Vega 2004-01-30 21:41:52 +00:00
parent 953e79e458
commit 6049e4c586

View File

@ -349,7 +349,11 @@ class Fun(callbacks.Privmsg):
if not ircutils.isChannel(channel): if not ircutils.isChannel(channel):
irc.error('This message must be sent in a channel.') irc.error('This message must be sent in a channel.')
if random.randint(1, 6) == 1: if random.randint(1, 6) == 1:
irc.queueMsg(ircmsgs.kick(channel, nick, 'BANG!')) if irc.nick not in irc.state.channels[channel].ops:
irc.reply('*BANG* Hey, who put a blank in here?!',
prefixName=False)
else:
irc.queueMsg(ircmsgs.kick(channel, nick, 'BANG!'))
else: else:
irc.reply('*click*') irc.reply('*click*')