def on_xmpp_presence_unsubscribe(self, presence):
        """Handler for XMPP presence unsubscribes"""

        summoner_id = self.jid_to_summoner_id(presence["from"])
        if self.riot_api_key and self.summoner_ids_to_name in summoner_id:
            self.fire_event("someone_removed", who=str(presence["from"]), summoner_name=self.summoner_ids_to_name[summoner_id])
            self.logger.debug(self.summoner_ids_to_name[summoner_id] + " just removed you")
            self.summoner_ids_to_name.pop(str(summoner_id), None)
        else:
            self.logger.debug(str(presence["from"]) + " just removed you")
            self.fire_event("someone_removed", who=str(presence["from"]))
        if summoner_id in self.friends:
            self.friends.remove(summoner_id)
dataset/ETHPy150Open Mathzx/zxLoLBoT/zxlolbot.py/zxLoLBoT.on_xmpp_presence_unsubscribe/swapped operands of `in`