def enforceAllBans(self):
        osm = self.main.osm

        # Check all the online nodes.
        for n in list(osm.nodes):
            int_ip = Ad().setRawIPPort(n.ipp).getIntIP()
            if self.isBanned(int_ip):
                osm.nodeExited(n, "Node Banned")

        # Check my ping neighbors.
        for pn in osm.pgm.pnbs.values():  # can't use itervalues
            int_ip = Ad().setRawIPPort(pn.ipp).getIntIP()
            if self.isBanned(int_ip):
                osm.pgm.instaKillNeighbor(pn)

        # Check myself
        if not osm.bsm:
            int_ip = Ad().setRawIPPort(osm.me.ipp).getIntIP()
            if self.isBanned(int_ip):
                self.main.showLoginStatus("You were banned.")
                self.main.shutdown(reconnect='max')