In this paper a novel self-repairing learning rule is proposed which is a combination of the spike-timing-dependent plasticity (STDP) and Bienenstock, Cooper, and Munro (BCM) learning rules: in the derivation of this rule account is taken of the coupling of GABA interneurons to the tripartite synapse. The rule modulates the plasticity level by shifting the plasticity window, associated with STDP, up and down the vertical axis as a function of postsynaptic neural activity. Specifically when neurons are inactive, the window is shifted up the vertical axis (open) and as the postsynaptic neuron activity increases and, as learning progresses, the plasticity window moves down the vertical axis until learning ceases. Simulation results are presented which show that the proposed approach can still maintain the network performance even with a fault density approaching 80% and because the rule is implemented using a minimal computational overhead it has potential for large scale spiking neural networks in hardware.