def on_xmpp_presence_subscribe(self, presence):
        """Handler for XMPP presence subscribes"""
        self.recently_added.append(str(presence["from"])+"/xiff")
        summoner_id = self.jid_to_summoner_id(presence["from"])
        if self.riot_api_key:
            if self.summoner_ids_to_name not in summoner_id:
                self.summoner_ids_to_name[summoner_id] = self.summoner_id_to_name(summoner_id)
            self.fire_event("someone_added", who=str(presence["from"]), summoner_name=self.summoner_ids_to_name[summoner_id])
            self.logger.debug(self.summoner_ids_to_name[summoner_id] + " just added you")
        else:
            self.fire_event("someone_added", who=str(presence["from"]))
            self.logger.debug(str(presence["from"]) + " just added you")
        if summoner_id not in self.friends:
            self.friends.append(summoner_id)
dataset/ETHPy150Open Mathzx/zxLoLBoT/zxlolbot.py/zxLoLBoT.on_xmpp_presence_subscribe/swapped operands of `not in`