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
1 changed files with 5 additions and 1 deletions

View File

@ -349,7 +349,11 @@ 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:
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:
irc.reply('*click*')