def doQuit(self, irc, msg):
        channel_names = ircutils.IrcSet()
        for (name, channel) in self.channels.items():
            if msg.nick in channel.users:
                channel_names.add(name)
                channel.removeUser(msg.nick)
        # Remember which channels the user was on
        msg.tag('channels', channel_names)
        if self.nicksToHostmasks in msg.nick:
            # If we're quitting, it may not be.
            del self.nicksToHostmasks[msg.nick]
dataset/ETHPy150Open ProgVal/Limnoria/src/irclib.py/IrcState.doQuit/swapped operands of `in`