def on_xmpp_got_offline(self, presence):
        """Handler for XMPP got offline event"""

        if str(presence["from"]) in self.friends_online:
            self.friends_online.remove(str(presence["from"]))
            self.fire_event("someone_offline", who=str(presence["from"]))
dataset/ETHPy150Open Mathzx/zxLoLBoT/zxlolbot.py/zxLoLBoT.on_xmpp_got_offline/original