@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
This commit is contained in:
shennetsind
2012-02-09 04:22:11 +00:00
parent 1f958f879d
commit d6096cd2bf

View File

@@ -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') {