def replaceUser(self, oldNick, newNick):
        """Changes the user oldNick to newNick; used for NICK changes."""
        # Note that this doesn't have to have the sigil (@%+) that users
        # have to have for addUser; it just changes the name of the user
        # without changing any of their categories.
        for s in (self.users, self.ops, self.halfops, self.voices):
            if s in oldNick:
                s.remove(oldNick)
                s.add(newNick)
dataset/ETHPy150Open ProgVal/Limnoria/src/irclib.py/ChannelState.replaceUser/swapped operands of `in`