Fix for cycling bug.

This commit is contained in:
Jeremy Fincher 2004-07-27 23:58:07 +00:00
parent 65c8b48d40
commit 8f72aeca1a

View File

@ -275,7 +275,8 @@ class Enforcer(callbacks.Privmsg):
def doQuit(self, irc, msg): def doQuit(self, irc, msg):
for (channel, c) in irc.state.channels.iteritems(): for (channel, c) in irc.state.channels.iteritems():
if len(c.users) == 1: if len(c.users) == 1:
self._cycle(irc, channel) if irc.nick not in c.ops:
self._cycle(irc, channel)
def __call__(self, irc, msg): def __call__(self, irc, msg):
channel = msg.args[0] channel = msg.args[0]