def server_disconnect(self, session, reason=""):
        """
        Called by server to force a disconnect by sessid.

        Args:
            sessid (int): Session id to disconnect.
            reason (str, optional): Motivation for disconect.

        """
        if session:
            session.disconnect(reason)
            if self in session.sessid:
                # in case sess.disconnect doesn't delete it
                del self[session.sessid]
            del session
dataset/ETHPy150Open evennia/evennia/evennia/server/portal/portalsessionhandler.py/PortalSessionHandler.server_disconnect/swapped operands of `in`