From 1e484a2b87bb906f958643af540418108ff182cb Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 16 Dec 2004 18:07:10 +0000 Subject: [PATCH] Don't cycle if we're already op. --- plugins/Cycler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Cycler.py b/plugins/Cycler.py index aef8bca39..e07881b87 100644 --- a/plugins/Cycler.py +++ b/plugins/Cycler.py @@ -65,6 +65,9 @@ class Cycler(callbacks.Privmsg): def _cycle(self, irc, channel): if self.registryValue('enable', channel) and \ len(irc.state.channels[channel].users) == 1: + if irc.state.channels[channel].isOp(irc.nick): + self.log.info('Not cycling %s: Already opped.', channel) + return if 'i' not in irc.state.channels[channel].modes and \ 'k' not in irc.state.channels[channel].modes: self.log.info('Cycling %s: I\'m the only one left.', channel)