Easing out code

This commit is contained in:
Maxetto 2015-07-10 16:16:42 +02:00
parent e63764e585
commit 11785c6547

View File

@ -52,11 +52,11 @@ public class ChangePasswordCommand implements CommandExecutor {
}
String lowpass = args[1].toLowerCase();
if ((lowpass.contains("delete") || lowpass.contains("where") || lowpass.contains("insert") || lowpass.contains("modify") || lowpass.contains("from") || lowpass.contains("select") || lowpass.contains(";") || lowpass.contains("null")) || !lowpass.matches(Settings.getPassRegex)) {
if (lowpass.contains("delete") || lowpass.contains("where") || lowpass.contains("insert") || lowpass.contains("modify") || lowpass.contains("from") || lowpass.contains("select") || lowpass.contains(";") || lowpass.contains("null") || !lowpass.matches(Settings.getPassRegex)) {
m.send(player, "password_error");
return true;
}
if ((lowpass.equalsIgnoreCase(name))) {
if (lowpass.equalsIgnoreCase(name)) {
m.send(player, "password_error_nick");
return true;
}