conaini counts
Someone knows how to count how many time string A is in string B?
Example: I made a anti-swear-plugin and added words like "low" or "affe (german for ape)", but now it blocks words like "glow" and "waffe (german for weapon)" too, so i added an ignore list looks like: PHP Code:
Someone understand that and knows how to fix it? xD |
Re: conaini counts
PHP Code:
|
Re: conaini counts
Mhh it's still the same problem, now i got this code:
PHP Code:
warn = just block (not that hard insults) mid = gag for 1 hour (mid insults) high = gag for 1 day (hard insults) |
Re: conaini counts
Instead of doing an "ignore" list, you should properly check for bad words that aren't inside of other words.
Here's some example code, which you'll have to translate to your own variables and such. Code:
|
Re: conaini counts
That's not better, because there are badwords like:
Hure (whore) Hurensohn (son of a whore) Hurenkind (child of a whore) etc. hundrets more Or the people start to insult with "!" behind the badwords or something. Now i made it like that: PHP Code:
|
| All times are GMT -4. The time now is 23:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.