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,6 +349,10 @@ class Fun(callbacks.Privmsg):
if not ircutils.isChannel(channel):
irc.error('This message must be sent in a channel.')
if random.randint(1, 6) == 1:
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:
irc.reply('*click*')