A new light-emitting polyacetylene bearing imidazole moieties in the side chain (), was conveniently prepared through a postfunctionalization strategy, as a sensory polymer to selectively report the presence of Cu2+ (with a detection limit of 1.48 ppm) based on the fluorescence "turn-off". Interestingly, the quenched luminescence of by Cu2+ could be turned on after the addition of CN-, making a novel, sensitive, and selective cyanide probe.