Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
It is o.k. I did same thing when it happened to me. But I learned how to block it. Taunt on a choice scarf pokemon blocks both spore and substitute. And I have one that does it to.