Finding words that a player says & block it
<p>I am wondering how to basically make the player's sentence stop after it has a swear word in it. Now, I have it already setup, BUT I need to know how to use the tolower method and how to stop it from saying the same word 3 times in a row while using this for loop:</p>

<pre><code>std::size_t found;
std::string word[3] = { "swear", "swear1", "swear2" };
for(int i = 0; i &lt; 3; i++)
{
   found = msg.find(word[i]); // needs to have tolower
   if(found != std::string::npos)
   {
      SendNotification("Message blocked. Does it contain swearing?");
      return;
   }
   else
   {  
      GetPlayer()-&gt;Say(msg, lang);
   }
}
</code></pre>

<p>Help would be grateful!</p>
