A censor that can detect words written in L337

The 2.0.x discussion forum has been locked; this will remain read-only. The 3.0.x discussion forum has been renamed phpBB Discussion.
Locked
ixfd64
Registered User
Posts: 26
Joined: Fri Nov 09, 2001 3:50 am
Location: California, U.S.A.
Contact:

A censor that can detect words written in L337

Post by ixfd64 » Thu Nov 29, 2001 3:14 am

Here is part of a code for such a censor, but it's written in Java. But I'm sure it can be easily converted.

Code: Select all

static boolean kn(char c, char c1) {
        if(c == c1)
            return true;
        if(c == 'i' && (c1 == 'l' || c1 == '1' || c1 == '!' || c1 == ':' || c1 == ';'))
            return true;
        if(c == 's' && c1 == '5')
            return true;
        if(c == 'e' && c1 == '3')
            return true;
        if(c == 'a' && c1 == '4')
            return true;
        if(c == 'o' && (c1 == '0' || c1 == '*'))
            return true;
        if(c == 'u' && c1 == 'v')
            return true;
        return c == 'c' && c1 == '(';
    }
It's from the game RuneScape (www.jagex.com)

scotshin7
Registered User
Posts: 328
Joined: Thu Jul 19, 2001 2:08 am
Location: Somewhere in the space/time continuum
Contact:

Post by scotshin7 » Thu Nov 29, 2001 3:26 am

:?:
Richard S.: phpBB Groupie
Always Image Search before asking questions!

gameofhit
Registered User
Posts: 986
Joined: Sun Oct 07, 2001 10:29 pm
Location: Michigan Tech
Contact:

Post by gameofhit » Thu Nov 29, 2001 5:18 am

Yeah, it should be pretty easy to convert. AFAIK the main difference would be that you would need to tuck "$" in front of the variables, and possibly change some of the variable types (i.e. "char").

It's hard to tell what this function is trying to do, do you have the rest of the code somewhere that we can see it? 8)

vandal
Registered User
Posts: 111
Joined: Fri Aug 10, 2001 10:37 am
Location: Berlin
Contact:

Post by vandal » Thu Nov 29, 2001 1:32 pm

heh ... one project that we have for my system is the 133741|z3R module
basically it converts any text to 1337 :-)

Locked

Return to “2.0.x Discussion”