Author Topic: Etard filter code?  (Read 550 times)

I'm curious on how etard filter works.
Can someone explain and give me the code for it?

Slayer overwrites messageSent.

if($Pref::Server::eTardFilter)
   {
      %list = strReplace($Pref::Server::eTardList,",","\t");

      for(%i = 0; %i < getFieldCount(%list); %i ++)
      {
         %wrd = trim(getField(%list,%i));
         if(%wrd $= "")
            continue;
         if(striPos(" " @ %msg @ " "," " @ %wrd @ " ") >= 0)
         {
            messageClient(%client,'',"\c5This is a civilized game. Please use full words.");
            return;
         }
      }
   }