Merge pull request 'Better 7 sanitize' (#228) from Better7Sanitize into master
Reviewed-on: #228
Dieser Commit ist enthalten in:
Commit
d9e9374fe3
@ -63,6 +63,10 @@ public class ChatListener extends BasicListener {
|
|||||||
e.setMessage("/" + e.getMessage().substring(1));
|
e.setMessage("/" + e.getMessage().substring(1));
|
||||||
}else if(begin.startsWith("77") && begin.substring(2).matches("[A-Za-z]+")){
|
}else if(begin.startsWith("77") && begin.substring(2).matches("[A-Za-z]+")){
|
||||||
e.setMessage("//" + e.getMessage().substring(2));
|
e.setMessage("//" + e.getMessage().substring(2));
|
||||||
|
}else if(begin.startsWith("7/") && begin.substring(2).matches("[A-Za-z]+")){
|
||||||
|
e.setMessage("//" + e.getMessage().substring(2));
|
||||||
|
}else if(begin.startsWith("/7") && begin.substring(2).matches("[A-Za-z]+")){
|
||||||
|
e.setMessage("//" + e.getMessage().substring(2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren