I know there's been alot of discussion on this already, but here's my
perspective.

I don't really care what my players say in 'says' or in 'tells'. (We have
flagged the mud as 'adult')
However, on public channels it was intolerable, punishable.

When no imms were on (and of course channels are logged!) they would say
things I couldn't fathom coming out of a 15 year old's mouth.

I grabbed a function I wrote for my BBS and fixed them up with it:

(I had all the cuss words here, but erased them leaving just **** for
placeholders.
It takes a char *str, and if mangle is true, it will take the swear in the
list and replace it with ****'s.
You don't need to pass ch, or 'swear'. These were added just for my own law
system, and can be removed.
(If you swore in a hometown, even with says you got to visit jail for a few
days)

I did end up removing my global channels, but this still is active for some
of the very 'strict with crime' areas.
Player's don't think it's too funny when their punishment is losing a piece
of equipment for swearing :)


void scan_words(CHAR_DATA *ch, char *str,bool mangle,  bool swear)
{
   int i,j=0, replace, len,slen, loop;
   bool swore=FALSE;
   char word[32];
   char orig[MSL];
   char *sub[]={"****", "****", NULL};
   strcpy(orig, str);
   for (loop=0; sub[loop]!=NULL; loop++){
      strcpy(word, sub[loop]);
      len=strlen(word);
      j=0;
      slen = strlen(str);
      for (i=0; i<len; i++){
     if (tolower(word[0])==tolower(str[i])){
        while(tolower(word[j])==tolower(str[i])){
           if (j==len-1){
          for (replace=(i-len+1); replace<i+1; replace++)
            if(isalpha((int)str[replace])){
              if (swear) swore=TRUE;
               if (mangle)
             str[replace]='*';
            }
          j=0;
          break;
           }
           j++; i++;
        }
        j=0;
     }
      }
   }
   if (swore && !IS_IMMORTAL(ch)){
     if (add_crime(ch, ch, CRIME_SWEARING))
        wiznet (orig, NULL, NULL, WIZ_CRIME, 0, 0);
   }
}


And yeah, I'm sure this could be written a lot better. I wrote this about 4
years ago, and I wasn't an L337 coder then. :)



>-----Original Message-----
>From: Sandi Fallon [mailto:[EMAIL PROTECTED]
>Sent: Thursday, April 25, 2002 6:52 AM
>To: [email protected]
>Subject: OT: Admin, morals, naughty words
>
>
>Sorry guys,
>
>I know many of you don't like non-coding discussions, but I turn to
>you all for an opinion on this because I truly do respect them, and
>don't know who else to ask...
>
>
>Point blank: Would you allow the use of the word 'homo' on your game?
>
>The place in question is pretty rough and tumble, stuff like 'h3ll',
>'sh!t' and 'b!tch' are common, the F word and the C word 
>aren't. There's
>no age disclaimer on entry.
>
>
>Sandi                            
>
>                  "I have not yet begun to code!"
>
>[EMAIL PROTECTED]                           blades.inetsolve.com 3333
>
>
>-- 
>ROM mailing list
>[email protected]
>http://www.rom.org/cgi-bin/mailman/listinfo/rom
>

Reply via email to