Slight tweak.

This commit is contained in:
Jeremy Fincher 2004-07-24 02:29:51 +00:00
parent 3f0dcf15d1
commit b9da065391

View File

@ -257,12 +257,12 @@ class Enforcer(callbacks.Privmsg):
def _cycle(self, irc, channel): def _cycle(self, irc, channel):
if self.registryValue('cycleToGetOps', channel): if self.registryValue('cycleToGetOps', channel):
if 'i' not in irc.state.channels[channel].modes: if 'i' not in irc.state.channels[channel].modes:
# What about keywords? # XXX: What about keywords?
self.log.info('Cycling %s: I\'m the only one left.', channel) self.log.info('Cycling %s: I\'m the only one left.', channel)
irc.queueMsg(ircmsgs.part(channel)) irc.queueMsg(ircmsgs.part(channel))
irc.queueMsg(ircmsgs.join(channel)) irc.queueMsg(ircmsgs.join(channel))
else: else:
self.log.warning('Not cycling %s: it\'s +i', channel) self.log.info('Not cycling %s: it\'s +i', channel)
def doPart(self, irc, msg): def doPart(self, irc, msg):
if msg.prefix != irc.prefix: if msg.prefix != irc.prefix: