def on_xmpp_got_online(self, presence):
        """Handler for XMPP got online event"""

        if presence["from"] != self.xmpp.boundjid:
            self.friends_online.append(str(presence["from"]))
            self.xmpp.send_presence(pto=presence["from"], ptype="chat", pstatus=self.get_status())
            self.fire_event("someone_online", who=str(presence["from"]))
            if self.recently_added in presence["from"]:
                self.recently_added.remove(presence["from"])
                if self.someone_added_message:
                    self.message(presence["from"], self.someone_added_message)
                self.fire_event("someone_added_online", who=str(presence["from"]))
            else: #Only send either recently_added or just logged on message
                if self.someone_online_message:
                    self.message(presence["from"], self.someone_online_message)
dataset/ETHPy150Open Mathzx/zxLoLBoT/zxlolbot.py/zxLoLBoT.on_xmpp_got_online/swapped operands of `in`