Selaa lähdekoodia

@ban is no longer able to reduce the length of a ban unless you can also @unban, special thanks to brian for the suggestion!

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15557 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 vuotta sitten
vanhempi
commit
d6096cd2bf
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      src/map/atcommand.c

+ 6 - 1
src/map/atcommand.c

@@ -3523,8 +3523,13 @@ ACMD_FUNC(char_ban)
 		if (value == 0)
 			modif_p++;
 		else {
-			if (modif_p[0] == '-' || modif_p[0] == '+')
+			if (modif_p[0] == '-' || modif_p[0] == '+') {
+				if( modif_p[0] == '-' && get_atcommand_level("unban") > pc_isGM(sd) ) {
+					clif_displaymessage(fd,"You are not allowed to reduce the length of a ban");
+					return -1;
+				}
 				modif_p++;
+			}
 			while (modif_p[0] >= '0' && modif_p[0] <= '9')
 				modif_p++;
 			if (modif_p[0] == 's') {