From 6049e4c58615e869730ac9853ad2ad82a1da962d Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 30 Jan 2004 21:41:52 +0000 Subject: [PATCH] Added vee2d2's roulette w/out ops idea. --- plugins/Fun.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/Fun.py b/plugins/Fun.py index 506d26ce1..5876e71eb 100644 --- a/plugins/Fun.py +++ b/plugins/Fun.py @@ -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*')