mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Censor the word "penis"
mage is censoring the word "vagina", so it should also censor "penis"
This commit is contained in:
parent
9a4d5ca15e
commit
3294e51d29
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ public class ChatManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean containsSwearing(String message) {
|
private boolean containsSwearing(String message) {
|
||||||
if (message != null && message.toLowerCase().matches("^.*(anal|asshole|balls|bastard|bitch|blowjob|cock|crap|cunt|cum|damn|dick|dildo|douche|fag|fuck|idiot|moron|piss|prick|pussy|rape|rapist|sex|screw|shit|slut|vagina).*$")) {
|
if (message != null && message.toLowerCase().matches("^.*(anal|asshole|balls|bastard|bitch|blowjob|cock|crap|cunt|cum|damn|dick|dildo|douche|fag|fuck|idiot|moron|penis|piss|prick|pussy|rape|rapist|sex|screw|shit|slut|vagina).*$")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue