It will say something along the line of "Sleep Clause activated: it doesn't affect opposing [Pokemon name]..."
Source: I had a Shiinotic use Spore on one of my Pokemon, then another. The second time it used Spore, that message (or something close to it) appeared.
Hope I helped!